enum-utilities-generator icon indicating copy to clipboard operation
enum-utilities-generator copied to clipboard

Quote marks in title will break code

Open pekspro opened this issue 1 year ago • 1 comments

If I use this:

public enum PaymentMethodIgnore
{
    [Description("Credit\"card")]
    Credit,

    [Description("Debit card")]
    Debit,

    Cash
}

The generated code will not compile. Consider use SymbolDisplay.FormatLiteral to properly escape strings.

pekspro avatar Jun 23 '24 07:06 pekspro

I'll look into that in the near future. When I created this lib, I didn't take this kind of scenario in consideration.

leoformaggi avatar Jul 03 '24 16:07 leoformaggi