예제 #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);
 }