MyProperty cannot return a string if you want to be able to restrict the values it can be set to a compile time, it must return a MyType.
You can use the Enum.TryParse method to convert a string into an enum value: http://ift.tt/1kno09O
Please remember to close your threads by marking helpful posts as answer and then start a new thread if you have a new question.
No comments:
Post a Comment