Click here to Skip to main content
15,886,919 members
Home / Discussions / C#
   

C#

 
AnswerRe: another Func-enstein weirdness : and yet another bad example of MS documentation Pin
Gerry Schmitz16-Oct-14 17:43
mveGerry Schmitz16-Oct-14 17:43 
AnswerRe: another Func-enstein weirdness : and yet another bad example of MS documentation Pin
OriginalGriff16-Oct-14 19:27
mveOriginalGriff16-Oct-14 19:27 
AnswerRe: another Func-enstein weirdness : and yet another bad example of MS documentation Pin
Richard Deeming17-Oct-14 5:28
mveRichard Deeming17-Oct-14 5:28 
Questionnecessity to cast return value to nullable in lambda expression ? Pin
BillWoodruff16-Oct-14 7:25
professionalBillWoodruff16-Oct-14 7:25 
AnswerRe: necessity to cast return value to nullable in lambda expression ? Pin
Richard Deeming16-Oct-14 8:12
mveRichard Deeming16-Oct-14 8:12 
GeneralRe: necessity to cast return value to nullable in lambda expression ? Pin
BillWoodruff16-Oct-14 8:44
professionalBillWoodruff16-Oct-14 8:44 
GeneralRe: necessity to cast return value to nullable in lambda expression ? Pin
Richard Deeming16-Oct-14 8:49
mveRichard Deeming16-Oct-14 8:49 
AnswerRe: necessity to cast return value to nullable in lambda expression ? Pin
Pete O'Hanlon16-Oct-14 8:13
mvePete O'Hanlon16-Oct-14 8:13 
The issue isn't the one you think it is. Basically, the problem is the part that says i1/i2. What you have here is a condition that the compiler thinks could return as an int because of the implicit type of this operation. Now, you basically need to tell the compiler that you're returning an int? out of this so that it knows what to put it as. Here's a little trick to demonstrate this:
C#
{ "/", (i1, i2) => ((i2 == 0) ?  null : ((int?)i1)/i2) },

GeneralRe: necessity to cast return value to nullable in lambda expression ? Pin
BillWoodruff16-Oct-14 8:44
professionalBillWoodruff16-Oct-14 8:44 
QuestionHow to read tables in Excel Worksheet witc C# and XML Pin
Member 1110881716-Oct-14 3:13
Member 1110881716-Oct-14 3:13 
AnswerRe: How to read tables in Excel Worksheet witc C# and XML Pin
BillWoodruff16-Oct-14 5:25
professionalBillWoodruff16-Oct-14 5:25 
GeneralRe: How to read tables in Excel Worksheet witc C# and XML Pin
Member 1110881716-Oct-14 21:14
Member 1110881716-Oct-14 21:14 
AnswerRe: How to read tables in Excel Worksheet witc C# and XML Pin
Eddy Vluggen16-Oct-14 9:05
professionalEddy Vluggen16-Oct-14 9:05 
QuestionC#/C wrapper Pin
Nikolaj jensen16-Oct-14 2:39
Nikolaj jensen16-Oct-14 2:39 
AnswerRe: C#/C wrapper Pin
Richard MacCutchan16-Oct-14 2:59
mveRichard MacCutchan16-Oct-14 2:59 
GeneralRe: C#/C wrapper Pin
Nikolaj jensen16-Oct-14 3:52
Nikolaj jensen16-Oct-14 3:52 
GeneralRe: C#/C wrapper Pin
Richard MacCutchan16-Oct-14 3:56
mveRichard MacCutchan16-Oct-14 3:56 
GeneralRe: C#/C wrapper Pin
Nikolaj jensen16-Oct-14 21:43
Nikolaj jensen16-Oct-14 21:43 
QuestionHow to convert HTML Form data into RTF File Pin
mukulsharma114616-Oct-14 1:37
mukulsharma114616-Oct-14 1:37 
AnswerRe: How to convert HTML Form data into RTF File Pin
Richard MacCutchan16-Oct-14 2:55
mveRichard MacCutchan16-Oct-14 2:55 
AnswerRe: How to convert HTML Form data into RTF File Pin
Eddy Vluggen16-Oct-14 9:07
professionalEddy Vluggen16-Oct-14 9:07 
GeneralRe: How to convert HTML Form data into RTF File Pin
mukulsharma114616-Oct-14 19:56
mukulsharma114616-Oct-14 19:56 
AnswerRe: How to convert HTML Form data into RTF File Pin
BillWoodruff16-Oct-14 10:11
professionalBillWoodruff16-Oct-14 10:11 
QuestionHow to draw small circle in rectangle c# Pin
Member 1115802716-Oct-14 0:52
Member 1115802716-Oct-14 0:52 
AnswerRe: How to draw small circle in rectangle c# Pin
Richard MacCutchan16-Oct-14 1:32
mveRichard MacCutchan16-Oct-14 1:32 

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.