so let's say i have an array of strings like "Monday", "Tuesday",
"Wednesday", etc...
and I'm writing a parser that parses a day from a string and for memory
consevartion instead of saving the string I want to convert it into an
enumeration like:
enum Days : sbyte { MONDAY, TUESDAY, WEDNESDAY, etc ... }
So what's the best way to convert that "Monday" into a Days.MONDAY?
They are both at index 0 so I thought it would be easy but I can't figure it
out...
any help would be much appreciated!