how to store string values in enum in c# code example Example: how to pass string value to enum in c# MyEnum myEnum = (MyEnum)Enum.Parse(typeof(MyEnum), myString);