c# enum check if value exists code example Example: c# enum check in string value if (System.Enum.IsDefined(MyEnumType, MyValue)) { // Do something }