public static void AddExportEnum(string exportClassName, FieldInfo info) { ExportClass ec = GetExportClass(exportClassName); ec.fullClassName = info.DeclaringType.ToString(); ec.className = Rolance.Utils.cutNamespace(info.DeclaringType.ToString()); ec.exportClassName = exportClassName; string enumName = info.Name; ExportEnum ep = ec.GetEnum(enumName); ep.enumName = enumName; ep.fi = info; }
public ExportEnum GetEnum(string enumName) { ExportEnum em; if (enumDict.ContainsKey(enumName)) { em = enumDict[enumName]; } else { em = new ExportEnum(); enumDict.Add(enumName, em); em.ec = this; } return(em); }