示例#1
0
 public static lhConfigData GetInstance(Action onInstanceOver)
 {
     if (m_instance != null)
     {
         return(null);
     }
     return(m_instance = new lhConfigData(onInstanceOver));
 }
示例#2
0
 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;
 }