Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
C#
c# enum check in string value
ignorantFid
Programming language:
C#
2021-04-13 09:12:53
2
Q:
c# enum check in string value
Jeremy Feng
Code:
C#
2021-04-01 06:31:10
if (System.Enum.IsDefined(MyEnumType, MyValue)) { // Do something }
0
Tags
string
value
check
enum
Related
c# enum syntax
how to retrive an enum string value instead of number in c# controller
c# check if string is in array
c# does value exist in list
c# string enum
if string contains number c#
c# how do you check if a string contains only digits
list contains type c#
c# how to check string is number
c# check if string is all numbers
c# get enum value from string
get enum value c#
enums as numbers c#
c# check if string contains value
c# get enum in list
c# see if string is int
New to Communities?
Join the community