摘要: 这两天在研究设计模式,现在看来还不知道各种设计模式会具体用在哪些场景中,哈哈,可能还没有达到那种境界吧。 最常用的莫过于工厂模式了。 来个最简单的工厂: interface IFruit { } class Apple:IFruit { } class Orange:IFruit { } class Factory { public static IFruit Create(string name) { switch ... 阅读全文
posted @ 2012-06-07 10:02 cuitsl 阅读(1585) 评论(16) 推荐(2) 编辑
友情博客:大熊的外星球