Exemplo n.º 1
0
 public static IAutoMobileFactory GetInstance()
 {
     if (_bmwFactory == null)
     {
         _bmwFactory = new BMWFactory();
     }
     return(_bmwFactory);
 }
Exemplo n.º 2
0
 public static BMWFactory GetInstance()
 {
     if (_container == null)
     {
         _container = new BMWFactory();
     }
     return(_container);
 }
Exemplo n.º 3
0
 public static BMWFactory GetInstance()
 {
     if (container == null)
     {
         container = new BMWFactory();
     }
     return(container);
     //return new DataService();
 }