BaseAttribute.cs 326 B

12345678910111213141516
  1. using System;
  2. namespace WS
  3. {
  4. ///<summary>属性基类</summary>
  5. [AttributeUsage(AttributeTargets.Class, AllowMultiple = true)]
  6. public class BaseAttribute : Attribute
  7. {
  8. public Type AttributeType { get; }
  9. public BaseAttribute()
  10. {
  11. AttributeType = GetType();
  12. }
  13. }
  14. }