Click here to Skip to main content
15,893,401 members
Home / Discussions / C#
   

C#

 
AnswerRe: Read Data from Access DB in ComboBox Pin
Dave Kreskowiak12-Jul-13 15:05
mveDave Kreskowiak12-Jul-13 15:05 
QuestionNull array in a dictionary Pin
PozzaVecia11-Jul-13 20:42
PozzaVecia11-Jul-13 20:42 
QuestionRe: Null array in a dictionary Pin
Richard MacCutchan11-Jul-13 21:09
mveRichard MacCutchan11-Jul-13 21:09 
AnswerRe: Null array in a dictionary Pin
OriginalGriff11-Jul-13 21:10
mveOriginalGriff11-Jul-13 21:10 
GeneralRe: Null array in a dictionary Pin
PozzaVecia11-Jul-13 21:59
PozzaVecia11-Jul-13 21:59 
GeneralRe: Null array in a dictionary Pin
OriginalGriff11-Jul-13 22:24
mveOriginalGriff11-Jul-13 22:24 
GeneralRe: Null array in a dictionary Pin
PozzaVecia11-Jul-13 23:45
PozzaVecia11-Jul-13 23:45 
GeneralRe: Null array in a dictionary Pin
OriginalGriff11-Jul-13 23:58
mveOriginalGriff11-Jul-13 23:58 
No, there is no way to "miss out" a value in a IEnumerable iteration.
You could use double.MinValue instead:
C#
var ks = d.Max(v => v.Value == null ? double.MinValue : v.Value[0]);
or
C#
var ks = d.Max(v => { if (v.Value == null) return null; return v.Value[0]; });
But then you need to check for null in the ks variable as a list with all nulls with return a null instead of a double value.
The universe is composed of electrons, neutrons, protons and......morons. (ThePhantomUpvoter)

GeneralRe: Null array in a dictionary Pin
Richard Deeming12-Jul-13 1:51
mveRichard Deeming12-Jul-13 1:51 
GeneralRe: Null array in a dictionary Pin
OriginalGriff12-Jul-13 3:37
mveOriginalGriff12-Jul-13 3:37 
GeneralRe: Null array in a dictionary Pin
Richard Deeming12-Jul-13 1:50
mveRichard Deeming12-Jul-13 1:50 
AnswerRe: Null array in a dictionary Pin
Jay Nardev12-Jul-13 1:11
Jay Nardev12-Jul-13 1:11 
QuestionRead Minidumps through Native Code Pin
Zach.Saunders11-Jul-13 6:02
Zach.Saunders11-Jul-13 6:02 
AnswerRe: Read Minidumps through Native Code Pin
Eddy Vluggen11-Jul-13 8:32
professionalEddy Vluggen11-Jul-13 8:32 
GeneralRe: Read Minidumps through Native Code Pin
Zach.Saunders11-Jul-13 9:52
Zach.Saunders11-Jul-13 9:52 
GeneralRe: Read Minidumps through Native Code Pin
Mycroft Holmes11-Jul-13 14:01
professionalMycroft Holmes11-Jul-13 14:01 
GeneralRe: Read Minidumps through Native Code Pin
Zach.Saunders11-Jul-13 15:33
Zach.Saunders11-Jul-13 15:33 
GeneralRe: Read Minidumps through Native Code Pin
Eddy Vluggen14-Jul-13 2:59
professionalEddy Vluggen14-Jul-13 2:59 
QuestionLatest built installer for a project doesn't show up in Add/Remove Programs Pin
stingray2711-Jul-13 2:59
stingray2711-Jul-13 2:59 
AnswerRe: Latest built installer for a project doesn't show up in Add/Remove Programs Pin
stingray2711-Jul-13 4:14
stingray2711-Jul-13 4:14 
GeneralRe: Latest built installer for a project doesn't show up in Add/Remove Programs Pin
stingray2712-Jul-13 1:53
stingray2712-Jul-13 1:53 
QuestionRemove / delete MemoryMappedFile Pin
Member 333503211-Jul-13 1:32
Member 333503211-Jul-13 1:32 
AnswerRe: Remove / delete MemoryMappedFile Pin
Garth J Lancaster11-Jul-13 1:54
professionalGarth J Lancaster11-Jul-13 1:54 
GeneralRe: Remove / delete MemoryMappedFile Pin
Member 333503211-Jul-13 2:01
Member 333503211-Jul-13 2:01 
QuestionDesign Question Pin
Kevin Marois10-Jul-13 16:07
professionalKevin Marois10-Jul-13 16:07 

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.