I have an enum
enum myEnum2 { ab, st, top, under, below}
I would like to write a function to test if a given value is included in myEnum
Also can use this:
enum myEnum2 { ab, st, top, under, below } static void Main(string[] args) { myEnum2 r; string name = "ab"; bool result = Enum.TryParse(name, out r); }
The result will contain whether the value is contained in enum or not.