Answers for "how to check if an enum contains a given string .net"

C#
1

c# enum check in string value

if (System.Enum.IsDefined(MyEnumType, MyValue))
{
    // Do something
}
Posted by: Guest on September-02-2020

Code answers related to "how to check if an enum contains a given string .net"

C# Answers by Framework

Browse Popular Code Answers by Language