sebastienros/fluid

Render enums as strings as opposed to integer values

Opened this issue · 0 comments

I'm using a value converter to render enums as strings:

TemplateOptions.Default.ValueConverters.Add((v) => v is Enum e ? $"{e}" : null);

I was wondering if there's an easier (built-in) way (option) to do this or if this solution is the best one.

(And thanks for the AMAZING job! I'm using Fluid very successfully as a way to apply automatic templates to an object in my Object Liquefier project)