引入:(观察者模式) 准备工作: 1 public interface IObject 2 { 3 void DoAction(); 4 } 1 public class Baby : IObject 2 { 3 public void DoAction() 4 { 5 this.Cry(); 6 Read More
posted @ 2018-02-04 22:23 ~Jungle Views(112) Comments(0) Diggs(0) Edit