I am using a 3rd party DLL which expects an enumeration called ‘DaysOfWeek’ in the method signature.
I am allowing my users to select the day of week from a ComboBox, but I end up with a string.
How can I match my string to the appropriate enumeration property?
Thanks!
Note: This will launch an exception if the string is not convertible to the enum. Last parameter is for case insensitive search.