SHARE
TWEET

Untitled

a guest Jun 18th, 2019 61 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public delegate void Del(int a);
  2.     public event Del Even;
  3.  
  4.     public static void Main()
  5.     {
  6.         var prog = new Program();
  7.         prog.Even += prog.Method;
  8.  
  9.         prog.Method(356);
  10.  
  11.     }
  12.  
  13.     public void Method(int a)
  14.     {
  15.         Console.WriteLine("I Recivied");
  16.         if(Even != null)
  17.         {
  18.         Even(464);
  19.         }}}
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