Skip to content

Source generator that generates useful extension methods and utilities for C# enums

License

Notifications You must be signed in to change notification settings

NoahStolk/enum-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

enum-generator

🚧 WORK IN PROGRESS 🚧

NuGet Version

Enum-generator is a zero-dependency library containing a source generator that generates useful extension methods and utilities for enums in C#.

Examples

TODO

Benchmarks

TODO

Development

Debugging the Source Generator

To debug the source generator, use the launchSettings.json file in the EnumGenerator project to run the generator against the EnumGenerator.Sample project.

You can also debug the generator tests using the EnumGenerator.Tests project.

Snapshot Testing

To simply accept all snapshots immediately, run ./scripts/accept-all.sh src/EnumGenerator.Tests/snapshots from the root of the repository.

To control which diff tool is used for snapshot testing, use the DiffEngine_ToolOrder environment variable.

In JetBrains Rider, this can be configured under Build, Execution, Deployment > Unit Testing > Test Runner > Environment variables.

You can also disable DiffEngine by setting the DiffEngine_Disable environment variable to true.

About

Source generator that generates useful extension methods and utilities for C# enums

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published