23 lines
597 B
C#
23 lines
597 B
C#
using System;
|
|
|
|
namespace SWS.Model
|
|
{
|
|
[AttributeUsage(AttributeTargets.All | AttributeTargets.Field | AttributeTargets.Property | AttributeTargets.Method,
|
|
AllowMultiple = true, Inherited = true)]
|
|
public class GroupAttribute : Attribute
|
|
{
|
|
/// <summary>
|
|
/// 分组名称
|
|
/// </summary>
|
|
public string GroupName;
|
|
/// <summary>
|
|
/// 初始化
|
|
/// </summary>
|
|
/// <param name="groupName">分组名称</param>
|
|
public GroupAttribute(string groupName)
|
|
{
|
|
GroupName=groupName;
|
|
}
|
|
}
|
|
}
|