c# get string name from enum code example
Example: c# get enum name from value
string name=(weekdays)2;//returns weekdays which has value 2.Here weekdays is enum name
string name=(weekdays)2;//returns weekdays which has value 2.Here weekdays is enum name