get enum number for name c# 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