BuilderUtils.BuildSerializer method
Builds a YamlDotNet ISerializerBuilder with common settings.
public static SerializerBuilder BuildSerializer(SerializerBuilder builder,
bool omitNullValues = false, bool useFlowStyle = false, bool useSequenceFlowStyle = false,
bool jsonCompatible = false)
| parameter | description |
|---|---|
| builder | The serializer builder to configure. |
| omitNullValues | Whether to omit null values. |
| useFlowStyle | Whether to use flow style for collections. |
| useSequenceFlowStyle | Whether to use flow style for sequences. |
| jsonCompatible | Whether to make the output JSON compatible. |
Return Value
The configured serializer builder.
See Also
- class BuilderUtils
- namespace Kestrun.Utilities.Yaml