c# enum get value by name 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