In a document Microsoft published here discussing parameter design conventions/best practices, it's stated:
❌ DO NOT use
Enum.IsDefinedfor enum range checks.
Why do they discourage/advise against this and what's the preferred alternative?
In a document Microsoft published here discussing parameter design conventions/best practices, it's stated:
❌ DO NOT use
Enum.IsDefinedfor enum range checks.
Why do they discourage/advise against this and what's the preferred alternative?