Ejemplo n.º 1
0
 public static void CreateInstance()
 {
     if (instance == null)
     {
         instance = new FactoryMaster();
     }
 }
Ejemplo n.º 2
0
 public static FactoryMaster Instance()
 {
     if (singleton == null)
     {
         singleton = new FactoryMaster();
     }
     return(singleton);
 }