摘要: namespace MediatorPattern { // 抽象牌友类 public abstract class AbstractCardPartner { public int MoneyCount { get; set; } public AbstractCardPartner() { Mo... 阅读全文
posted @ 2017-05-08 13:29 小小高 阅读(195) 评论(0) 推荐(0)
摘要: namespace ObserverInNET { class Program { // 委托充当订阅者接口类 public delegate void NotifyEventHandler(object sender); // 抽象订阅号类 public class TenXun { ... 阅读全文
posted @ 2017-05-08 13:18 小小高 阅读(278) 评论(0) 推荐(0)
摘要: // 抽象聚合类 public interface IListCollection { Iterator GetIterator(); } // 迭代器抽象类 public interface Iterator { bool MoveNext(); Object GetCurrent(); ... 阅读全文
posted @ 2017-05-08 13:05 小小高 阅读(127) 评论(0) 推荐(0)