Click here to Skip to main content
15,895,746 members
Home / Discussions / C#
   

C#

 
AnswerRe: sql table change notifications Pin
BobJanova2-Aug-12 4:40
BobJanova2-Aug-12 4:40 
QuestionFinding value in a list Pin
Nathaniel Sumaya1-Aug-12 23:33
Nathaniel Sumaya1-Aug-12 23:33 
AnswerRe: Finding value in a list PinPopular
Ed Hill _5_1-Aug-12 23:44
Ed Hill _5_1-Aug-12 23:44 
AnswerRe: Finding value in a list Pin
AmitGajjar2-Aug-12 2:42
professionalAmitGajjar2-Aug-12 2:42 
GeneralRe: Finding value in a list Pin
Ed Hill _5_2-Aug-12 3:26
Ed Hill _5_2-Aug-12 3:26 
GeneralRe: Finding value in a list Pin
BobJanova2-Aug-12 4:29
BobJanova2-Aug-12 4:29 
AnswerRe: Finding value in a list Pin
Ramesh Muthiah3-Aug-12 0:47
Ramesh Muthiah3-Aug-12 0:47 
GeneralRe: Finding value in a list Pin
Ed Hill _5_3-Aug-12 0:59
Ed Hill _5_3-Aug-12 0:59 
C#
if (filteredCountry != null)


this will not ever be null as it is assigned on the line above, but it may contain no results if there are no matches, causing First to return an InvalidOperationException.
FirstOrDefault then a null check would be safer
AnswerRe: Finding value in a list Pin
Christian Amado6-Aug-12 10:39
professionalChristian Amado6-Aug-12 10:39 
Questionsetting the source of a bitmap image in C# Pin
Xarzu1-Aug-12 18:39
Xarzu1-Aug-12 18:39 
AnswerRe: setting the source of a bitmap image in C# Pin
Eddy Vluggen1-Aug-12 22:10
professionalEddy Vluggen1-Aug-12 22:10 
GeneralRe: setting the source of a bitmap image in C# Pin
Xarzu6-Aug-12 6:40
Xarzu6-Aug-12 6:40 
Generalhi Chris Maunder Pin
mohammad-mirshahi1-Aug-12 9:43
mohammad-mirshahi1-Aug-12 9:43 
GeneralRe: hi Chris Maunder Pin
Pete O'Hanlon1-Aug-12 9:46
mvePete O'Hanlon1-Aug-12 9:46 
QuestionSetDate of system from inside of our program Pin
Fred 341-Aug-12 4:15
Fred 341-Aug-12 4:15 
AnswerRe: SetDate of system from inside of our program Pin
Pete O'Hanlon1-Aug-12 4:22
mvePete O'Hanlon1-Aug-12 4:22 
AnswerRe: SetDate of system from inside of our program Pin
Dave Kreskowiak1-Aug-12 4:47
mveDave Kreskowiak1-Aug-12 4:47 
QuestionHow to refuse changes of controls in a form ? Pin
taibc1-Aug-12 0:36
taibc1-Aug-12 0:36 
AnswerRe: How to refuse changes of controls in a form ? Pin
Pete O'Hanlon1-Aug-12 0:39
mvePete O'Hanlon1-Aug-12 0:39 
GeneralRe: How to refuse changes of controls in a form ? Pin
taibc1-Aug-12 0:42
taibc1-Aug-12 0:42 
AnswerRe: How to refuse changes of controls in a form ? Pin
Ed Hill _5_1-Aug-12 0:47
Ed Hill _5_1-Aug-12 0:47 
GeneralRe: How to refuse changes of controls in a form ? Pin
taibc1-Aug-12 0:50
taibc1-Aug-12 0:50 
GeneralRe: How to refuse changes of controls in a form ? Pin
Pete O'Hanlon1-Aug-12 0:54
mvePete O'Hanlon1-Aug-12 0:54 
AnswerRe: How to refuse changes of controls in a form ? Pin
Fred 341-Aug-12 4:28
Fred 341-Aug-12 4:28 
QuestionHow can convert a lit<> to a DataTable? Pin
devenv.exe31-Jul-12 22:49
professionaldevenv.exe31-Jul-12 22:49 

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.