Click here to Skip to main content
15,888,351 members
Home / Discussions / C#
   

C#

 
GeneralRe: Why didn't I get the job? Pin
Mark J. Miller11-Apr-07 13:01
Mark J. Miller11-Apr-07 13:01 
GeneralRe: Why didn't I get the job? Pin
J$11-Apr-07 13:38
J$11-Apr-07 13:38 
GeneralRe: Why didn't I get the job? Pin
Mark J. Miller11-Apr-07 13:45
Mark J. Miller11-Apr-07 13:45 
AnswerRe: Why didn't I get the job? Pin
Colin Angus Mackay11-Apr-07 12:49
Colin Angus Mackay11-Apr-07 12:49 
GeneralRe: Why didn't I get the job? Pin
Mark J. Miller11-Apr-07 13:16
Mark J. Miller11-Apr-07 13:16 
AnswerRe: Why didn't I get the job? Pin
Christian Graus11-Apr-07 13:51
protectorChristian Graus11-Apr-07 13:51 
GeneralRe: Why didn't I get the job? Pin
Mark J. Miller12-Apr-07 2:59
Mark J. Miller12-Apr-07 2:59 
AnswerRe: Why didn't I get the job? Pin
Martin#11-Apr-07 20:22
Martin#11-Apr-07 20:22 
Hello Mark!

I just had a quick look threw your code.
As I only have .Net 1.1 VS2003, I couldn't open the sln, so I just looked into "Program.cs".

What confuses me is the usage of an int[] and why the code is not throwing an exception in your program (because it is doing that in my test program).

int[] list = new int[0];
...
//assign value in text file
list[i] = val; //here the null ref. exception is thrown (Is it a feature in .Net>1.1???)

I would have used an ArrayList for that.
This class implements IList (Add method) and also has a Sort method.
With a user IComparer class and the usage of the "CompareTo" method from the int class, there would be no need for the user Sort method.

Apart from that:
I like the usage of static method, the "using"-blocks and of corse the usage TryParse!

Hope my statment is not completely rubish.

All the best,

Martin
GeneralRe: Why didn't I get the job? Pin
blackjack215011-Apr-07 21:06
blackjack215011-Apr-07 21:06 
GeneralRe: Why didn't I get the job? Pin
Martin#11-Apr-07 21:21
Martin#11-Apr-07 21:21 
GeneralRe: Why didn't I get the job? Pin
Mark J. Miller12-Apr-07 2:55
Mark J. Miller12-Apr-07 2:55 
GeneralRe: Why didn't I get the job? Pin
Martin#12-Apr-07 3:07
Martin#12-Apr-07 3:07 
GeneralRe: Why didn't I get the job? Pin
Mark J. Miller12-Apr-07 3:25
Mark J. Miller12-Apr-07 3:25 
GeneralRe: Why didn't I get the job? Pin
Martin#12-Apr-07 3:32
Martin#12-Apr-07 3:32 
AnswerRe: Why didn't I get the job? Pin
Jaiprakash M Bankolli11-Apr-07 22:10
Jaiprakash M Bankolli11-Apr-07 22:10 
GeneralRe: Why didn't I get the job? Pin
Mark J. Miller12-Apr-07 3:01
Mark J. Miller12-Apr-07 3:01 
AnswerRe: Why didn't I get the job? Pin
J4amieC11-Apr-07 22:23
J4amieC11-Apr-07 22:23 
GeneralRe: Why didn't I get the job? Pin
Mark J. Miller12-Apr-07 3:03
Mark J. Miller12-Apr-07 3:03 
AnswerINVALUABLE!!! Pin
code-frog12-Apr-07 3:20
professionalcode-frog12-Apr-07 3:20 
GeneralRe: INVALUABLE!!! Pin
Mark J. Miller12-Apr-07 3:52
Mark J. Miller12-Apr-07 3:52 
GeneralRe: INVALUABLE!!! Pin
code-frog12-Apr-07 4:28
professionalcode-frog12-Apr-07 4:28 
GeneralRe: INVALUABLE!!! Pin
Mark J. Miller13-Jun-07 4:58
Mark J. Miller13-Jun-07 4:58 
Questionwpf and serialport component ........ Pin
Mir_As11-Apr-07 8:50
Mir_As11-Apr-07 8:50 
AnswerRe: wpf and serialport component ........ Pin
Ed.Poore11-Apr-07 12:18
Ed.Poore11-Apr-07 12:18 
QuestionRe: wpf and serialport component ........ Pin
Mir_As12-Apr-07 2:21
Mir_As12-Apr-07 2:21 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.