Example #1
0
 public static void Run()
 {
     Pub1 p = new Pub1();
     p.OnChange += () => Console.WriteLine("Method one raised");
     p.OnChange += () => Console.WriteLine("Method two raised");
     p.Raise();
 }
Example #2
0
        public static void Run()
        {
            Pub1 p = new Pub1();

            p.OnChange += () => Console.WriteLine("Method one raised");
            p.OnChange += () => Console.WriteLine("Method two raised");
            p.Raise();
        }