ConstAttribute.cs 502 B

1234567891011121314151617181920
  1. // 大名科技(天津)有限公司版权所有 电话:18020030720 QQ:515096995
  2. //
  3. // 此源代码遵循位于源代码树根目录中的 LICENSE 文件的许可证
  4. namespace Admin.NET.Core;
  5. /// <summary>
  6. /// 常量特性
  7. /// </summary>
  8. [SuppressSniffer]
  9. [AttributeUsage(AttributeTargets.All, AllowMultiple = true, Inherited = true)]
  10. public class ConstAttribute : Attribute
  11. {
  12. public string Name { get; set; }
  13. public ConstAttribute(string name)
  14. {
  15. Name = name;
  16. }
  17. }