Click here to Skip to main content
15,912,756 members
Home / Discussions / C#
   

C#

 
GeneralRe: Catch all but a specific exception Pin
Bernhard Hiller22-May-12 2:56
Bernhard Hiller22-May-12 2:56 
SuggestionRe: Catch all but a specific exception Pin
Eddy Vluggen22-May-12 8:59
professionalEddy Vluggen22-May-12 8:59 
GeneralRe: Catch all but a specific exception Pin
Satish3223-May-12 0:08
Satish3223-May-12 0:08 
AnswerRe: Catch all but a specific exception Pin
Richard Andrew x6422-May-12 5:19
professionalRichard Andrew x6422-May-12 5:19 
SuggestionRe: Catch all but a specific exception Pin
Cracked-Down23-May-12 2:01
Cracked-Down23-May-12 2:01 
GeneralRe: Catch all but a specific exception Pin
Bernhard Hiller23-May-12 4:29
Bernhard Hiller23-May-12 4:29 
AnswerRe: Catch all but a specific exception Pin
Cracked-Down23-May-12 4:49
Cracked-Down23-May-12 4:49 
GeneralRe: Catch all but a specific exception Pin
Cracked-Down27-May-12 21:00
Cracked-Down27-May-12 21:00 
Questionblocking USB ports Pin
Pritam Dalvi21-May-12 21:58
Pritam Dalvi21-May-12 21:58 
AnswerRe: blocking USB ports Pin
Richard MacCutchan21-May-12 22:58
mveRichard MacCutchan21-May-12 22:58 
QuestionDelegate Conversion to Method? [Solved] Pin
Ravi Sant21-May-12 21:06
Ravi Sant21-May-12 21:06 
AnswerRe: Delegate Conversion to Method? Pin
Keith Barrow21-May-12 21:59
professionalKeith Barrow21-May-12 21:59 
GeneralRe: Delegate Conversion to Method? Pin
Ravi Sant21-May-12 23:57
Ravi Sant21-May-12 23:57 
GeneralRe: Delegate Conversion to Method? Pin
Keith Barrow22-May-12 1:38
professionalKeith Barrow22-May-12 1:38 
AnswerRe: Delegate Conversion to Method? Pin
BobJanova22-May-12 0:06
BobJanova22-May-12 0:06 
QuestionBarcode in crystal Report in C# Pin
Member 360103421-May-12 21:04
Member 360103421-May-12 21:04 
AnswerRe: Barcode in crystal Report in C# Pin
Richard MacCutchan21-May-12 22:57
mveRichard MacCutchan21-May-12 22:57 
QuestionWhy no compiler warning in this code? Pin
Tom Clement21-May-12 9:40
professionalTom Clement21-May-12 9:40 
AnswerRe: Why no compiler warning in this code? Pin
Pete O'Hanlon21-May-12 10:03
mvePete O'Hanlon21-May-12 10:03 
GeneralRe: Why no compiler warning in this code? Pin
Tom Clement21-May-12 11:58
professionalTom Clement21-May-12 11:58 
GeneralRe: Why no compiler warning in this code? Pin
Pete O'Hanlon21-May-12 22:15
mvePete O'Hanlon21-May-12 22:15 
AnswerRe: Why no compiler warning in this code? Pin
OriginalGriff21-May-12 21:09
mveOriginalGriff21-May-12 21:09 
Simple: the constructor may do something that affects non-transient storage.
For example, it may insert the new object into the appropriate databases. That the object is not needed again by the code that creates it is irrelevant to the system.

It doesn't need a warning, any more than ignoring the return value from any other method call does:
C#
private int MyMethod(int i) 
   {
   i = i * 2;
   Console.WriteLine (i);
   return i;
   }
...
MyMethod(6);

Ideological Purity is no substitute for being able to stick your thumb down a pipe to stop the water

AnswerRe: Why no compiler warning in this code? Pin
Bernhard Hiller21-May-12 23:25
Bernhard Hiller21-May-12 23:25 
AnswerRe: Why no compiler warning in this code? Pin
BobJanova21-May-12 23:55
BobJanova21-May-12 23:55 
GeneralRe: Why no compiler warning in this code? Pin
Tom Clement22-May-12 3:38
professionalTom Clement22-May-12 3:38 

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.