public static ReceiveChejanDataFactory getClass1Instance() {
     if (_multiThread == false) {
         if (_class1 == null) {
             _class1 = new ReceiveChejanDataFactory();
         }
     } else {
         if (_class1 == null) {
             lock (object1) {
                 _class1 = new ReceiveChejanDataFactory();
             }
         }
     }
     return _class1;
 }
Example #2
0
 public static ReceiveChejanDataFactory getClass1Instance()
 {
     if (_multiThread == false)
     {
         if (_class1 == null)
         {
             _class1 = new ReceiveChejanDataFactory();
         }
     }
     else
     {
         if (_class1 == null)
         {
             lock (object1) {
                 _class1 = new ReceiveChejanDataFactory();
             }
         }
     }
     return(_class1);
 }