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