Пример #1
0
 public static PizzaStore GetInstance(SimplePizzaFactory factory)
 {
     if (_uniquePizzaStore == null)
     {
         _uniquePizzaStore = new PizzaStore(factory);
     }
     return(_uniquePizzaStore);
 }
Пример #2
0
 private PizzaStore(SimplePizzaFactory factory)
 {
     this._factory = factory;
 }