Dienstag, 17. März 2020

text to enum value

classic request how to convert a text entry to an enum value? See..

Colors orange = (Colors) Enum.Parse(typeof(Colors), "Red, Yellow");

Keine Kommentare:

Kommentar veröffentlichen