EnumMetaExportAttribute.cs 486 B

1234567891011121314151617181920
  1. using System;
  2. namespace VCommon.Reflection
  3. {
  4. /// <summary>
  5. /// 导出枚举元数据
  6. /// </summary>
  7. [AttributeUsage(AttributeTargets.Enum)]
  8. public class EnumMetaExportAttribute : Attribute
  9. {
  10. public EnumMetaExportAttribute(string exportName = null, bool manually = false)
  11. {
  12. ExportName = exportName;
  13. Manually = manually;
  14. }
  15. public string ExportName { get; }
  16. public bool Manually { get; }
  17. }
  18. }