get matched enum name value c# code example
Example 1: get enum name from value c#
int enumValue = 2; // The value for which you want to get string
string enumName = Enum.GetName(typeof(EnumDisplayStatus), enumValue);
Example 2: c# get enum name from value
string name=(weekdays)2;//returns weekdays which has value 2.Here weekdays is enum name