No, Enum.TryParse returns true only for valid enum values. If the input value is a numerical value that does not correspond to a valid enum value, Enum.TryParse will still return false.
Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss
Asked: 2021-06-26 11:00:00 +0000
Seen: 17 times
Last updated: Apr 08 '23
Is it possible to prevent the override of the last printed line on the Linux terminal?
What is the task of the sameEnds challenge on Codingbat?
In C#, can you have different types of return values?
How can the opening of installed apps by clicking on a link be prevented in Webview?
What is the method to retrieve every edge in Apache AGE?
Why does mypy and the "apply" function of "Series" reject the use of "set[Any]" as a return object?
How can a variable be returned within a while loop?
What does it mean when the Laravel login form returns false but redirects as true?