0

I wrote a custom value converter for YamlDotNet. I initialize it like this:

var ser = new SerializerBuilder().WithNamingConvention(UnderscoredNamingConvention.Instance).WithTypeConverter(MyTypeConverter.Instance).Build();

How to get the naming convention into the MyTypeConverter without having to explicitly pass it e.g. via a constructor parameter?

rabejens
  • 7,594
  • 11
  • 56
  • 104

0 Answers0