J
JezB
Given an enum :
public enum FlavourCategory {None = -1, Personal = -3, Local = -2,
Predefined = 1};
How can I convert a string eg. "-2" into a FlavourCategory ? I dont want to
write a switch statement.
public enum FlavourCategory {None = -1, Personal = -3, Local = -2,
Predefined = 1};
How can I convert a string eg. "-2" into a FlavourCategory ? I dont want to
write a switch statement.