Answers for "check an enum containa an int or not in C#"

C#
0

check an enum containa an int or not in C#

Enum.IsDefined(typeof(MyEnum), 1)? "1 is valid": "not valid";
Posted by: Guest on August-17-2021

Code answers related to "check an enum containa an int or not in C#"

C# Answers by Framework

Browse Popular Code Answers by Language