Hi,
Subject pretty much covers it. I am trying to serialize a class with string properties and want to out put them in the block style without quotes and "\r" or "\n".
I have been trying to do it with the SerializerSettings like:
var ocrTemplateType = typeof(OcrTemplate);
settings.RegisterTagMapping("!OcrTemplate", ocrTemplateType);
settings.Attributes.Register(ocrTemplateType.GetProperty(nameof(OcrTemplate.Text)), new YamlMemberAttribute(0));
settings.Attributes.Register(ocrTemplateType.GetProperty(nameof(OcrTemplate.Text)), new YamlStyleAttribute(SharpYaml.YamlStyle.Block));
Cheers,
dfkeenan