checking for null in event firing

  • Thread starter Thread starter matthew
  • Start date Start date
M

matthew

Doesn't this get old? Why in the world can't it just do nothing if there
are no event handlers attached to it.
 
matthew said:
Doesn't this get old? Why in the world can't it just do nothing if there
are no event handlers attached to it.

It does get old to be sure, but 'it' isn't doing anything, because 'it'
doesn't exist. I can't imagine how to write a class for an object whose
methods don't fire that error when a method is called on an object that
doesn't exist, and clearly a static one won't do it.

But is it really that bad?

Eric Eggermann
 
Back
Top