Posts

Post marked as solved
5 Replies
Great answer, I was going to add this code snippet I found as well:bool enum3IsDefined = Enum.IsDefined(typeof(Color), 3); bool enum4IsDefined = Enum.IsDefined(typeof(Color), 4); //Results: // enum3IsDefined = true // enum4IsDefined = falseSnippet taken from: C# int to enum