Esempio n. 1
0
 }                                                            // Something
 public static void NewInstance()                             // like a
 {
     if (Instance == null)
     {
         lock (mock)
         {
             if (Instance == null)
             {
                 Instance = new SubjectsData();
             }
         }
     }
 }
Esempio n. 2
0
 public static void DeleteInstance()                           // Singleton
 {
     Instance = null;
 }