Posted By

drdamour on 09/15/06


Tagged


Versions (?)

Checking for Null Event


 / Published in: C#
 

  1. namespace EventFirer
  2. {
  3. public delegate void DaHandler(string value);
  4.  
  5. public class EventFirer
  6. {
  7. public event DaHandler DaEvent;
  8.  
  9. public void FireEvent(string value)
  10. {
  11. if(DaEvent != null) DaEvent(value);
  12. }
  13.  
  14. }
  15. }

Report this snippet  

You need to login to post a comment.