c# enum get name from int 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