Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

c# get enum name from value

string name=(weekdays)2;//returns weekdays which has value 2.Here weekdays is enum name
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #enum
ADD COMMENT
Topic
Name
7+3 =