Abstract Factory
摘要:处理有依赖关系的系列对象变化 public abstract class Road{ internal void AAA() { throw new System.Exception("The method or operation is not implemented."); }}public abstract class Building{ interna...
阅读全文
posted @
2006-09-03 23:49
LGX.NET
阅读(138)
推荐(0)
Singleton
摘要:单线程 public class Singleton{ private static Singleton instance; private Singleton() { }//私有实例构造器,如果自己不提供,编译器会自动生成共有无参构造器 public static Singleton Instance { get { if...
阅读全文
posted @
2006-09-03 22:17
LGX.NET
阅读(112)
推荐(0)