Tag Archives: initialize enum from value or string

How to initialize an enum from a string or int value in c#

I didn’t know you could do this, but I tried and it seems fine so it’s worth sharing. I’m working in a large code base, where my input might come from a web form, or an imported file, or even … Continue reading

Posted in Programming | Tagged , | Leave a comment