Click here to Skip to main content
15,116,653 members
Home / Discussions / C#
   

C#

 
GeneralRe: Why didn't I get the job? Pin
Mark J. Miller11-Apr-07 14:01
MemberMark J. Miller11-Apr-07 14:01 
GeneralRe: Why didn't I get the job? Pin
J$11-Apr-07 14:38
MemberJ$11-Apr-07 14:38 
GeneralRe: Why didn't I get the job? Pin
Mark J. Miller11-Apr-07 14:45
MemberMark J. Miller11-Apr-07 14:45 
AnswerRe: Why didn't I get the job? Pin
Colin Angus Mackay11-Apr-07 13:49
MemberColin Angus Mackay11-Apr-07 13:49 
GeneralRe: Why didn't I get the job? Pin
Mark J. Miller11-Apr-07 14:16
MemberMark J. Miller11-Apr-07 14:16 
AnswerRe: Why didn't I get the job? Pin
Christian Graus11-Apr-07 14:51
protectorChristian Graus11-Apr-07 14:51 
GeneralRe: Why didn't I get the job? Pin
Mark J. Miller12-Apr-07 3:59
MemberMark J. Miller12-Apr-07 3:59 
AnswerRe: Why didn't I get the job? Pin
Martin#11-Apr-07 21:22
MemberMartin#11-Apr-07 21: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 22:06
Memberblackjack215011-Apr-07 22:06 
GeneralRe: Why didn't I get the job? Pin
Martin#11-Apr-07 22:21
MemberMartin#11-Apr-07 22:21 
GeneralRe: Why didn't I get the job? Pin
Mark J. Miller12-Apr-07 3:55
MemberMark J. Miller12-Apr-07 3:55 
GeneralRe: Why didn't I get the job? Pin
Martin#12-Apr-07 4:07
MemberMartin#12-Apr-07 4:07 
GeneralRe: Why didn't I get the job? Pin
Mark J. Miller12-Apr-07 4:25
MemberMark J. Miller12-Apr-07 4:25 
GeneralRe: Why didn't I get the job? Pin
Martin#12-Apr-07 4:32
MemberMartin#12-Apr-07 4:32 
AnswerRe: Why didn't I get the job? Pin
Jaiprakash M Bankolli11-Apr-07 23:10
MemberJaiprakash M Bankolli11-Apr-07 23:10 
GeneralRe: Why didn't I get the job? Pin
Mark J. Miller12-Apr-07 4:01
MemberMark J. Miller12-Apr-07 4:01 
AnswerRe: Why didn't I get the job? Pin
J4amieC11-Apr-07 23:23
MemberJ4amieC11-Apr-07 23:23 
GeneralRe: Why didn't I get the job? Pin
Mark J. Miller12-Apr-07 4:03
MemberMark J. Miller12-Apr-07 4:03 
AnswerINVALUABLE!!! Pin
code-frog12-Apr-07 4:20
professionalcode-frog12-Apr-07 4:20 
GeneralRe: INVALUABLE!!! Pin
Mark J. Miller12-Apr-07 4:52
MemberMark J. Miller12-Apr-07 4:52 
GeneralRe: INVALUABLE!!! Pin
code-frog12-Apr-07 5:28
professionalcode-frog12-Apr-07 5:28 
GeneralRe: INVALUABLE!!! Pin
Mark J. Miller13-Jun-07 5:58
MemberMark J. Miller13-Jun-07 5:58 
Questionwpf and serialport component ........ Pin
Mir_As11-Apr-07 9:50
MemberMir_As11-Apr-07 9:50 
AnswerRe: wpf and serialport component ........ Pin
Ed.Poore11-Apr-07 13:18
MemberEd.Poore11-Apr-07 13:18 
QuestionRe: wpf and serialport component ........ Pin
Mir_As12-Apr-07 3:21
MemberMir_As12-Apr-07 3: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.