Esempio n. 1
0
 /// <summary>
 /// 单例初始化器
 /// </summary>
 /// <returns></returns>
 public static ApplicationConfigManager Instance()
 {
     if (_instance == null)
     {
         lock (lockObject)
         {
             if (_instance == null)
             {
                 _instance = new ApplicationConfigManager();
             }
         }
     }
     return(_instance);
 }
 /// <summary>
 /// 单例初始化器
 /// </summary>
 /// <returns></returns>
 public static ApplicationConfigManager Instance()
 {
     if (_instance == null)
     {
         lock (lockObject)
         {
             if (_instance == null)
             {
                 _instance = new ApplicationConfigManager();
             }
         }
     }
     return _instance;
 }