YamlNamingPolicy class
Determines the naming policy used to convert a string-based name to another format, such as a camel-casing format.
Namespace: System.Text.Yaml ยท Assembly: Styml.dll
public abstract class YamlNamingPolicy
Determines the naming policy used to convert a string-based name to another format, such as a camel-casing format.
ConstructorsLink to this heading
Initializes a new instance of YamlNamingPolicy.
protected YamlNamingPolicy();
PropertiesLink to this heading
CamelCaseLink to this heading
Returns the naming policy for camel-casing.
public static YamlNamingPolicy CamelCase { get; }
KebabCaseLowerLink to this heading
Returns the naming policy for lower kebab-casing.
public static YamlNamingPolicy KebabCaseLower { get; }
KebabCaseUpperLink to this heading
Returns the naming policy for upper kebab-casing.
public static YamlNamingPolicy KebabCaseUpper { get; }
PascalCaseLink to this heading
Returns the naming policy for PascalCasing.
public static YamlNamingPolicy PascalCase { get; }
SnakeCaseLowerLink to this heading
Returns the naming policy for lower snake-casing.
public static YamlNamingPolicy SnakeCaseLower { get; }
SnakeCaseUpperLink to this heading
Returns the naming policy for upper snake-casing.
public static YamlNamingPolicy SnakeCaseUpper { get; }
MethodsLink to this heading
ConvertNameLink to this heading
When overridden in a derived class, converts the specified name according to the policy.
public abstract string ConvertName(string name);
Parameters
name: The name to convert.
Returns: The converted name.