Esempio n. 1
0
 public static DictionaryBase getInstance()
 {
     if (dbInstance == null)
     {
         lock (syncRoot)
         {
             if (dbInstance == null)
                 dbInstance = new DictionaryBase();
         }
     }
     return dbInstance;
 }
Esempio n. 2
0
 public static DictionaryBase getInstance()
 {
     if (dbInstance == null)
     {
         lock (syncRoot)
         {
             if (dbInstance == null)
             {
                 dbInstance = new DictionaryBase();
             }
         }
     }
     return(dbInstance);
 }