Beispiel #1
0
        public static void CreateAndRaise()
        {
            Pub pop = new Pub();
            pop.OnChanged += () => Console.WriteLine("Event raised to method 1");
            pop.OnChanged += () => Console.WriteLine("Event raised to method 2");
            pop.Raise();

            Console.ReadLine();
        }