-
-
Notifications
You must be signed in to change notification settings - Fork 159
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add source generator #355
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: