SetPropertyName Method
Definition
- Namespace
- Codebelt.Extensions.YamlDotNet.Formatters
- Assemblies
- Codebelt.Extensions.YamlDotNet.dll
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
optionsYamlFormatterOptionsThe YamlFormatterOptions to extend.
namestringThe name of the property.
Returns
- string
If
options. is null, the specifiednameis returned unaltered; otherwise it is converted according to the NamingConvention.