public FEnum(FClass host, FieldWrap define, ImportExcel excel) : base(host, define) { EnumWrap info = EnumWrap.Enums[define.OriginalType]; string name = excel.GetEnum(); EnumName = info.GetEnumName(name); EnumName = EnumName.IsEmpty() ? name : EnumName; Value = info.GetEnumValue(EnumName); if (!info.ContainItem(name)) { excel.Error($"未定义枚举(名称/别名){define.FullName}.{name} !"); } }