Why do Microsoft docs state "DO NOT use Enum.IsDefined for enum range checks."?

Viewed 45

In a document Microsoft published here discussing parameter design conventions/best practices, it's stated:

❌ DO NOT use Enum.IsDefined for enum range checks.

Why do they discourage/advise against this and what's the preferred alternative?

0 Answers
Related