check an enum containa an int or not in csharp
Code Example - check an enum containa an int or not in csharp
Enum.IsDefined(typeof(MyEnum), 1)? "1 is valid": "not valid";
Enum.IsDefined(typeof(MyEnum), 1)? "1 is valid": "not valid";