コード例 #1
0
 public static void CreateInstance()
 {
     if (instance == null)
     {
         instance = new FactoryMaster();
     }
 }
コード例 #2
0
 public static FactoryMaster Instance()
 {
     if (singleton == null)
     {
         singleton = new FactoryMaster();
     }
     return(singleton);
 }