asked on
public enum Samplecolumns
{
[Description("one")]
col1=1,
[Description("two")]
col2=2,
[Description("three")]
col3=3
}
public class Sample
{
public Samplecolumns Column { get; set; }
}
public class Program
{
static void Main(string[] args)
{
//How to get Description of enum ?
}
}
ASKER
The .NET Framework is not specific to any one programming language; rather, it includes a library of functions that allows developers to rapidly build applications. Several supported languages include C#, VB.NET, C++ or ASP.NET.
TRUSTED BY
string description = Enumerations.GetEnumDescri