Table of Contents

SetPropertyName Method

Definition

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 YamlFormatterOptions

The YamlFormatterOptions to extend.

name string

The name of the property.

Returns

string

If options. is null, the specified name is returned unaltered; otherwise it is converted according to the NamingConvention.