I have a enum type
public enum DataType:int
{
None = 0,
[Description("A")]
Alpha = 1,
[Description("N")]
Numeric,
[Description("AN")]
AlphaNumeric,
[Description("D")]
Date
}
How do I retrieve the description attribute value of, say, Alpha.
Eg(ideal) : DataType.Alpha.Attribute should give “A”
Use this