You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Auto assign defined fields to name of field and incremental value start from 1
class must be defined as partial with Attribute [SmartEnumGenerator] and all fields must be static
example class with SmartEnumGenerator and no inheritance from SmartEnum
Note: //in future we can define a custom attribute to ignore field
I'll do a pull request for this feature in separated package called SmartEnum.SourceGenerator
The text was updated successfully, but these errors were encountered:
Auto assign defined fields to name of field and incremental value start from 1
class must be defined as partial with Attribute [SmartEnumGenerator] and all fields must be static
example class with SmartEnumGenerator and no inheritance from SmartEnum
generated code will be
example class with SmartEnumGenerator and inheritanced from SmartEnum
generated code will be
Note: //in future we can define a custom attribute to ignore field
I'll do a pull request for this feature in separated package called SmartEnum.SourceGenerator
The text was updated successfully, but these errors were encountered: