public virtual void OnInitialization() { System.Object[] objs = GetType().GetCustomAttributes(typeof(InternalModuleAttribute), true); for (int i = 0; i < objs.Length; i++) { if (typeof(InternalModuleAttribute) == objs[i].GetType()) { attribute = (InternalModuleAttribute)(objs[i]); mModuleType = attribute.moduleType; this.d("damon", moduleType.ToString(), false); } } }
public InternalModuleAttribute(HTFrameworkModuleType moduleType) { this.moduleType = moduleType; }