Class YamlFormatterOptionsExtensions
- Namespace
- Codebelt.Extensions.YamlDotNet.Formatters
- Assembly
- Codebelt.Extensions.YamlDotNet.dll
Extension methods for the YamlFormatterOptions class.
public static class YamlFormatterOptionsExtensions
- Inheritance
-
YamlFormatterOptionsExtensions
Methods
SetPropertyName(YamlFormatterOptions, string)
Returns the specified name
adhering to the underlying NamingConvention policy on options
.
public static string SetPropertyName(this YamlFormatterOptions options, string name)
Parameters
options
YamlFormatterOptionsThe YamlFormatterOptions to extend.
name
stringThe name of the property.
Returns
- string
If
options
. is null, the specifiedname
is returned unaltered; otherwise it is converted according to the NamingConvention.