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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top