Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

Get Enum Name


int value = GetValueFromDb();
var enumDisplayStatus = (EnumDisplayStatus)value;
string stringValue = enumDisplayStatus.ToString();

Source by w3programmers.org #
 
PREVIOUS NEXT
Tagged: #Get #Enum #Name
ADD COMMENT
Topic
Name
6+3 =