Proposal: Add attributes which run custom functions to and throw compiler errors on fail. #16110
Labels
Area-Analyzers
Feature Request
Resolution-Fixed
The bug has been fixed and/or the requested behavior has been implemented
Add some way of putting attributes on different classes/enums and run custom functions for validation on compile time.
E.g.
A custom NoDublicatesAttribute could be added to enums to prevent multiple in the enum.
A custom NoImplicitValuesAttribute could be added to enums to only allow explicit value assignment the enum.
The text was updated successfully, but these errors were encountered: