Click here to Skip to main content
15,890,043 members
Home / Discussions / C#
   

C#

 
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 
GeneralRe: Why no compiler warning in this code? Pin
Sentenryu22-May-12 9:30
Sentenryu22-May-12 9:30 
Questionsearch on a particular sheet Excel workbook Pin
Maximmm21-May-12 5:30
Maximmm21-May-12 5:30 
AnswerRe: search on a particular sheet Excel workbook Pin
PIEBALDconsult21-May-12 7:11
mvePIEBALDconsult21-May-12 7:11 
GeneralRe: search on a particular sheet Excel workbook Pin
Maximmm21-May-12 7:23
Maximmm21-May-12 7:23 
GeneralRe: search on a particular sheet Excel workbook Pin
PIEBALDconsult21-May-12 7:41
mvePIEBALDconsult21-May-12 7:41 
GeneralRe: search on a particular sheet Excel workbook Pin
Maximmm21-May-12 7:45
Maximmm21-May-12 7:45 
GeneralRe: search on a particular sheet Excel workbook Pin
PIEBALDconsult21-May-12 7:51
mvePIEBALDconsult21-May-12 7:51 
GeneralRe: search on a particular sheet Excel workbook Pin
Maximmm21-May-12 7:55
Maximmm21-May-12 7:55 
GeneralRe: search on a particular sheet Excel workbook Pin
Maximmm21-May-12 7:50
Maximmm21-May-12 7:50 
GeneralRe: search on a particular sheet Excel workbook Pin
PIEBALDconsult21-May-12 7:52
mvePIEBALDconsult21-May-12 7:52 
GeneralRe: search on a particular sheet Excel workbook Pin
Maximmm21-May-12 7:53
Maximmm21-May-12 7:53 
GeneralRe: search on a particular sheet Excel workbook Pin
PIEBALDconsult21-May-12 9:03
mvePIEBALDconsult21-May-12 9:03 
AnswerRe: search on a particular sheet Excel workbook Pin
Mycroft Holmes21-May-12 12:36
professionalMycroft Holmes21-May-12 12:36 
GeneralRe: search on a particular sheet Excel workbook Pin
Maximmm21-May-12 12:39
Maximmm21-May-12 12:39 

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.