Friday, February 19, 2010

Enum value to string

the syntax to get name of enum in string format is below
string name= Enum.GetName(typeof(sampleEnum), sampleEnum.sampleEnumValue);

for details; look at the link.

No comments: