public static lhConfigData GetInstance(Action onInstanceOver) { if (m_instance != null) { return(null); } return(m_instance = new lhConfigData(onInstanceOver)); }
public void Dispose() { //Important;Dispose configClass foreach (var info in propertyInfos) { var attribute = Attribute.GetCustomAttribute(info, typeof(lhConfigDataAttribute)); if (attribute != null) { info.SetValue(this, null, null); } } m_instance = null; }