Exemple #1
0
 public static Singleton1 GetInstance()
 {
     lock (myLock)
     {
         return instance ?? (instance = new Singleton1());
     }
 }