daily pastebin goal
3%
SHARE
TWEET

Untitled

a guest Jan 12th, 2018 46 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public class A
  2. {
  3.     public delegate void D();
  4.     public event D E;
  5.  
  6.     public void DoSomething() { /* ... */ }
  7.  
  8.     public A()
  9.     {
  10.         E += DoSomething;
  11.     }
  12. }
  13.  
  14. public class B
  15. {
  16.     public static void Main(string[] args)
  17.     {
  18.         A a = new A();
  19.         a.E(); // error
  20.     }
  21. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top