G
Guest
Is there any difference between following codes.
public event EventHandler Click
when Raise this event:
if(Click != null)
Click(this, EventArgs.Empty);
or
if(Click != null)
{
EventHandler temp = Click;
temp(this, EventArgs.Empty);
}
public event EventHandler Click
when Raise this event:
if(Click != null)
Click(this, EventArgs.Empty);
or
if(Click != null)
{
EventHandler temp = Click;
temp(this, EventArgs.Empty);
}