Пример #1
0
 public static AppUnderTest CreateInstance()
 {
     if(_instance == null)
     {
         lock(lockHelper)
         {
             if(_instance == null)
                 _instance = new AppUnderTest();
         }
     }
     return _instance;
 }
Пример #2
0
 public static AppUnderTest CreateInstance()
 {
     if (_instance == null)
     {
         lock (lockHelper)
         {
             if (_instance == null)
             {
                 _instance = new AppUnderTest();
             }
         }
     }
     return(_instance);
 }