enum-utilities-generator
enum-utilities-generator copied to clipboard
A source generator to generate compile-time mapping of enums and description attributes
This fixes #1
The nuget package is missing the `true` flag. When installed the transient dependencies (for example `Microsoft.CodeAnalysis.CSharp`) will be included in the clients project. When installed via nuget it will mark...
If I use this: ```C# public enum PaymentMethodIgnore { [Description("Credit\"card")] Credit, [Description("Debit card")] Debit, Cash } ``` The generated code will not compile. Consider use [SymbolDisplay.FormatLiteral](https://learn.microsoft.com/en-us/dotnet/api/microsoft.codeanalysis.csharp.symboldisplay.formatliteral) to properly escape strings.