narsil/Tanshu.Accounts.Contracts/Attributes/DisplayAttribute.cs

19 lines
508 B
C#

using System;
namespace Tanshu.Accounts.Contracts
{
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Property)]
public class DisplayAttribute : Attribute
{
public DisplayAttribute(string name, bool showInChoices, int group)
{
Name = name;
ShowInChoices = showInChoices;
Group = group;
}
public string Name { get; set; }
public int Group { get; set; }
public bool ShowInChoices { get; set; }
}
}