Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

c# convert string to enum value

using System;

Enum.tryParse("input", out EnumName myEnum);
Source by www.csharp-examples.net #
 
PREVIOUS NEXT
Tagged: #convert #string #enum
ADD COMMENT
Topic
Name
1+4 =