Events can be null


/ Published in: C#
Save to your folder(s)



Copy this code and paste it in your HTML
  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(params string value)
  10. {
  11. DaEvent(value);
  12. }
  13.  
  14. }
  15. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.