C# Conversions – String To Enum Instance

http://www.cambiaresearch.com/cambia3/snippets/csharp/conversions/StringToEnumInstance.aspx

“How do I convert a string value of an Enum entry to a valid instance of the Enum?” (I answer this one below.)
“How can I get a valid Enum instance from its integer value.” (Go here for the answer to that one.)

por Vitor Silva



Leave a Reply