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