using System; namespace VCommon.Reflection { [AttributeUsage(AttributeTargets.Field)] public sealed class EnumMetaAttribute : Attribute { /// /// 界面文本 /// public string Text { get; } /// /// 排序 /// public int Sort { get; } /// /// 额外信息 /// public string Tag { get; } /// /// 导出元数据时忽略该成员 /// public bool DoNotExport { get; set; } /// /// /// public EnumMetaAttribute(string text, int sort = 0, string tag = null) { Text = text; Sort = sort; Tag = tag; } } }