Getting an enum back from string
3
Given a string, you can return an Enum value
Originally found at http://codeproject.com/dotnet/EnumTips.asp?df=100&forumid=38264&exp=0&select=797671
Originally found at http://codeproject.com/dotnet/EnumTips.asp?df=100&forumid=38264&exp=0&select=797671
MyEnumVal = CType(System.Enum.Parse(GetType(MyEnum), "gamma"), MyEnum)






There are currently no comments for this snippet.