R
Richard Coltrane
Hi there,
Im stepping into C# from VB.net. In all the examples ive seen about raising
events the following construct is used:
if (myevent != null)
myevent(this,args);
Whats the purpose of the test for null? Is that testing to see if the
underlying delegate is null? If so when would it be?
TIA
Richard
Im stepping into C# from VB.net. In all the examples ive seen about raising
events the following construct is used:
if (myevent != null)
myevent(this,args);
Whats the purpose of the test for null? Is that testing to see if the
underlying delegate is null? If so when would it be?
TIA
Richard