KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I am encountering a problem which is how do I convert input strings like "RED" to the actual Color type Color.Red in C#. Is there a good way to do this? I could think of using a switch statement and cases statement for each color type but I don't think that is clever enough.
Tags (comma-separated)
Save Edits
Cancel