示例#1
0
文件: Events1.cs 项目: Chaek/MCSD
 public static void Run()
 {
     Pub1 p = new Pub1();
     p.OnChange += () => Console.WriteLine("Method one raised");
     p.OnChange += () => Console.WriteLine("Method two raised");
     p.Raise();
 }
示例#2
0
文件: Events1.cs 项目: war-man/MCSD
        public static void Run()
        {
            Pub1 p = new Pub1();

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