摘要:
/// /// FPC抽象类/// public abstract class FPC{ /// /// FPC生产抽象方法 /// public abstract void Produce();}/// /// 生产GTL类/// public class GTL : ... 阅读全文
摘要:
/// /// 简单工厂类/// public class FoodSim{ public static Food CreateFood(string str) { Food food = null; if (str == "C1") { ... 阅读全文
摘要:
public class Singleton{ private static Singleton _instance;//定义一个私有Singleton类型字段,此处不实例化 private static readonly object locker = new object();// ... 阅读全文