Class YamlFormatterOptions
Configuration options for YamlFormatter.
Inherited Members
Namespace: Cuemon.Text.Yaml.Formatters
Assembly: Cuemon.Core.dll
Syntax
public sealed class YamlFormatterOptions : EncodingOptions, IEncodingOptions, IValidatableParameterObject, IParameterObject
Constructors
| Improve this Doc View SourceYamlFormatterOptions()
Initializes a new instance of the YamlFormatterOptions class.
Declaration
public YamlFormatterOptions()
Remarks
The following table shows the initial property values for an instance of YamlFormatterOptions.
Property | Initial Value |
---|
Properties
| Improve this Doc View SourceDefaultConverters
Gets or sets a delegate that is invoked when YamlFormatterOptions is initialized and propagates registered YamlConverter implementations.
Declaration
public static Action<IList<YamlConverter>> DefaultConverters { get; set; }
Property Value
Type | Description |
---|---|
Action<IList<YamlConverter>> | The delegate which propagates registered YamlConverter implementations when YamlFormatterOptions is initialized. |
Settings
Gets or sets the settings to support the YamlConverter.
Declaration
public YamlSerializerOptions Settings { get; set; }
Property Value
Type | Description |
---|---|
YamlSerializerOptions | A YamlSerializerOptions instance that specifies a set of features to support the YamlConverter object. |
Methods
| Improve this Doc View SourceValidateOptions()
Determines whether the public read-write properties of this instance are in a valid state.
Declaration
public void ValidateOptions()
Remarks
This method is expected to throw exceptions when one or more conditions fails to be in a valid state.
Exceptions
Type | Condition |
---|---|
InvalidOperationException | Settings cannot be null. |