/// <summary> /// 释放 /// </summary> public void Dispose() { if (_instance != null) { lock (lockhelper) { if (_instance != null) { this._info_dic = null; _instance = null; } } } }
/// <summary> /// 获取单例 /// </summary> /// <returns></returns> public static ConfigInfoHelper GetInstance() { if (_instance == null) { lock (lockhelper) { if (_instance == null) { _instance = new ConfigInfoHelper(); } } } return(_instance); }
/// <summary> /// 获取单例 /// </summary> /// <returns></returns> public static ConfigInfoHelper GetInstance() { if (_instance == null) { lock (lockhelper) { if (_instance == null) { _instance = new ConfigInfoHelper(); } } } return _instance; }