using System; namespace WS { ///<summary>属性基类</summary> [AttributeUsage(AttributeTargets.Class, AllowMultiple = true)] public class BaseAttribute : Attribute { public Type AttributeType { get; } public BaseAttribute() { AttributeType = GetType(); } } }