using System; namespace SWS.Model { [AttributeUsage(AttributeTargets.All | AttributeTargets.Field | AttributeTargets.Property | AttributeTargets.Method, AllowMultiple = true, Inherited = true)] public class GroupAttribute : Attribute { /// /// 分组名称 /// public string GroupName; /// /// 初始化 /// /// 分组名称 public GroupAttribute(string groupName) { GroupName=groupName; } } }