BaseAttribute.cs 310 B

123456789101112131415
  1. using System;
  2. namespace KYFramework
  3. {
  4. [AttributeUsage(AttributeTargets.Class, AllowMultiple = true)]
  5. public class BaseAttribute : Attribute
  6. {
  7. public Type AttributeType { get; }
  8. public BaseAttribute()
  9. {
  10. this.AttributeType = this.GetType();
  11. }
  12. }
  13. }