Click here to Skip to main content
15,887,027 members
Home / Discussions / C#
   

C#

 
GeneralRe: Grammar checker Web server - MultiThreaded Application Pin
Pete O'Hanlon3-Oct-16 3:15
mvePete O'Hanlon3-Oct-16 3:15 
SuggestionRe: Grammar checker Web server - MultiThreaded Application Pin
ZurdoDev3-Oct-16 3:40
professionalZurdoDev3-Oct-16 3:40 
AnswerRe: Grammar checker Web server - MultiThreaded Application Pin
ZurdoDev3-Oct-16 3:38
professionalZurdoDev3-Oct-16 3:38 
AnswerRe: Grammar checker Web server - MultiThreaded Application Pin
Gerry Schmitz3-Oct-16 5:32
mveGerry Schmitz3-Oct-16 5:32 
QuestionC# delegate {} Pin
dagogi2-Oct-16 21:49
dagogi2-Oct-16 21:49 
AnswerRe: C# delegate {} Pin
Pete O'Hanlon2-Oct-16 22:04
mvePete O'Hanlon2-Oct-16 22:04 
GeneralRe: C# delegate {} Pin
Rob Philpott3-Oct-16 1:14
Rob Philpott3-Oct-16 1:14 
AnswerRe: C# delegate {} Pin
OriginalGriff2-Oct-16 22:06
mveOriginalGriff2-Oct-16 22:06 
It's a place holder that assigns an empty method - one that does nothing - to the event in case no handler method is ever assigned. That way, if it isn't used by the rest of the application, it doesn't crash when the delegate is used.
It's a bit like saying
C#
List<string> list = new List<string>();
Instead of
C#
List<string> list = null;

So when you use the collection:
C#
list.Add("hello world");
You don't need to check that a list is assigned first to prevent your app crashing:
C#
if (list == null) list = new List<string>();
list.Add("hello world");

Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...

AnswerRe: C# delegate {} Pin
dagogi2-Oct-16 23:01
dagogi2-Oct-16 23:01 
AnswerRe: C# delegate {} Pin
Midi_Mick3-Oct-16 3:11
professionalMidi_Mick3-Oct-16 3:11 
Questionhow to select multiple items from checkedlistbox and display in datagridview Pin
Member 126737792-Oct-16 18:39
Member 126737792-Oct-16 18:39 
AnswerRe: how to select multiple items from checkedlistbox and display in datagridview Pin
Richard MacCutchan2-Oct-16 22:47
mveRichard MacCutchan2-Oct-16 22:47 
AnswerRe: how to select multiple items from checkedlistbox and display in datagridview Pin
Richard Deeming3-Oct-16 2:21
mveRichard Deeming3-Oct-16 2:21 
QuestionC# Integration with Barcode Printers Pin
mohamad10882-Oct-16 1:01
mohamad10882-Oct-16 1:01 
AnswerRe: C# Integration with Barcode Printers Pin
OriginalGriff2-Oct-16 1:18
mveOriginalGriff2-Oct-16 1:18 
GeneralLearning C# Pin
Lrk891-Oct-16 10:01
Lrk891-Oct-16 10:01 
GeneralRe: Learning C# Pin
Peter_in_27801-Oct-16 13:30
professionalPeter_in_27801-Oct-16 13:30 
Questionconnecting acess2007 database in c# Pin
Member 1276842430-Sep-16 0:26
Member 1276842430-Sep-16 0:26 
AnswerRe: connecting acess2007 database in c# Pin
OriginalGriff30-Sep-16 0:29
mveOriginalGriff30-Sep-16 0:29 
AnswerRe: connecting acess2007 database in c# Pin
Simon_Whale30-Sep-16 1:17
Simon_Whale30-Sep-16 1:17 
QuestionNeed Help | Increase .NET knowledge Pin
Member 1179671529-Sep-16 6:08
Member 1179671529-Sep-16 6:08 
AnswerRe: Need Help | Increase .NET knowledge Pin
Richard MacCutchan29-Sep-16 6:28
mveRichard MacCutchan29-Sep-16 6:28 
AnswerRe: Need Help | Increase .NET knowledge Pin
#realJSOP29-Sep-16 7:38
mve#realJSOP29-Sep-16 7:38 
AnswerRe: Need Help | Increase .NET knowledge Pin
OriginalGriff29-Sep-16 8:03
mveOriginalGriff29-Sep-16 8:03 
GeneralRe: Need Help | Increase .NET knowledge Pin
Mycroft Holmes29-Sep-16 12:50
professionalMycroft Holmes29-Sep-16 12:50 

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.