Click here to Skip to main content
15,917,174 members
Home / Discussions / C#
   

C#

 
GeneralRe: i need help............ Pin
Richard MacCutchan6-Mar-15 23:20
mveRichard MacCutchan6-Mar-15 23:20 
AnswerRe: i need help............ Pin
OriginalGriff6-Mar-15 23:57
mveOriginalGriff6-Mar-15 23:57 
GeneralRe: i need help............ Pin
Richard MacCutchan7-Mar-15 3:03
mveRichard MacCutchan7-Mar-15 3:03 
GeneralRe: i need help............ Pin
OriginalGriff7-Mar-15 3:56
mveOriginalGriff7-Mar-15 3:56 
GeneralRe: i need help............ Pin
Richard MacCutchan7-Mar-15 4:15
mveRichard MacCutchan7-Mar-15 4:15 
GeneralRe: i need help............ Pin
OriginalGriff7-Mar-15 4:33
mveOriginalGriff7-Mar-15 4:33 
AnswerRe: i need help............ Pin
Afzaal Ahmad Zeeshan7-Mar-15 0:05
professionalAfzaal Ahmad Zeeshan7-Mar-15 0:05 
GeneralRe: i need help............ Pin
OriginalGriff7-Mar-15 2:21
mveOriginalGriff7-Mar-15 2:21 
Um...I'd disagree with you there, particularly with beginners.
Modern compilers are pretty damn good: if they flag something up as a warning, it normally means that you have done something wrong, and your code won't work as you expect:
C#
if (a == b);
   c();
Is a warning in C#...

In this case, a "Possible unintended reference comparison" warning normally means that you are comparing the item instead of it's property or some such - and that your code won't work.

These kind of problems can be extremely difficult to spot without the warning: you tend to read what you meant to write, so you mentally fill in the missing bit and it takes a long time to work out.
The "extra semicolon" error and the "but I meant a comparison" error in C could take hours to work out because the older compilers didn't even consider them worth a warning!
C#
if (a = b) ...
When you meant to write
C#
if (a == b) ...


[edit]Typos![/edit]
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...

AnswerRe: i need help............ Pin
Afzaal Ahmad Zeeshan7-Mar-15 3:09
professionalAfzaal Ahmad Zeeshan7-Mar-15 3:09 
GeneralRe: i need help............ Pin
OriginalGriff7-Mar-15 3:55
mveOriginalGriff7-Mar-15 3:55 
GeneralRe: i need help............ Pin
Afzaal Ahmad Zeeshan7-Mar-15 3:59
professionalAfzaal Ahmad Zeeshan7-Mar-15 3:59 
GeneralRe: i need help............ Pin
manchanx7-Mar-15 4:30
professionalmanchanx7-Mar-15 4:30 
GeneralRe: i need help............ Pin
OriginalGriff7-Mar-15 4:35
mveOriginalGriff7-Mar-15 4:35 
GeneralRe: i need help............ Pin
Afzaal Ahmad Zeeshan7-Mar-15 4:41
professionalAfzaal Ahmad Zeeshan7-Mar-15 4:41 
GeneralRe: i need help............ Pin
BillWoodruff7-Mar-15 4:56
professionalBillWoodruff7-Mar-15 4:56 
GeneralRe: i need help............ Pin
OriginalGriff7-Mar-15 5:06
mveOriginalGriff7-Mar-15 5:06 
AnswerRe: i need help............ Pin
BillWoodruff7-Mar-15 5:05
professionalBillWoodruff7-Mar-15 5:05 
QuestionHelp me, very urgent problem, about after running the program design. Pin
Member 114460806-Mar-15 16:25
Member 114460806-Mar-15 16:25 
AnswerRe: Help me, very urgent problem, about after running the program design. Pin
Dave Kreskowiak6-Mar-15 17:58
mveDave Kreskowiak6-Mar-15 17:58 
GeneralRe: Help me, very urgent problem, about after running the program design. Pin
Member 114460807-Mar-15 16:51
Member 114460807-Mar-15 16:51 
AnswerRe: Help me, very urgent problem, about after running the program design. Pin
Richard MacCutchan6-Mar-15 21:40
mveRichard MacCutchan6-Mar-15 21:40 
AnswerRe: Help me, very urgent problem, about after running the program design. Pin
OriginalGriff6-Mar-15 21:47
mveOriginalGriff6-Mar-15 21:47 
GeneralRe: Help me, very urgent problem, about after running the program design. Pin
Member 114460807-Mar-15 16:50
Member 114460807-Mar-15 16:50 
GeneralRe: Help me, very urgent problem, about after running the program design. Pin
OriginalGriff7-Mar-15 21:03
mveOriginalGriff7-Mar-15 21:03 
GeneralRe: Help me, very urgent problem, about after running the program design. Pin
phil.o7-Mar-15 8:19
professionalphil.o7-Mar-15 8:19 

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.