YamlNamingPolicy Class
Determines the naming policy used to convert a CLR member name to a YAML key.
public abstract class YamlNamingPolicyConstructors
| Name | Description |
|---|---|
| YamlNamingPolicy() | Initializes a new instance of the YamlNamingPolicy class. |
YamlNamingPolicy()
YamlNamingPolicy.csInitializes a new instance of the YamlNamingPolicy class.
protected YamlNamingPolicy()Properties
| Name | Description |
|---|---|
| CamelCase | Gets the naming policy for camelCase. |
| KebabCaseLower | Gets the naming policy for kebab-case (lowercase). |
| KebabCaseUpper | Gets the naming policy for KEBAB-CASE (uppercase). |
| PascalCase | Gets the naming policy for PascalCase. |
| SnakeCaseLower | Gets the naming policy for snake_case (lowercase). |
| SnakeCaseUpper | Gets the naming policy for SNAKE_CASE (uppercase). |
CamelCase
YamlNamingPolicy.csGets the naming policy for camelCase.
public static YamlNamingPolicy CamelCase { get; }Property value
KebabCaseLower
YamlNamingPolicy.csGets the naming policy for kebab-case (lowercase).
public static YamlNamingPolicy KebabCaseLower { get; }Property value
KebabCaseUpper
YamlNamingPolicy.csGets the naming policy for KEBAB-CASE (uppercase).
public static YamlNamingPolicy KebabCaseUpper { get; }Property value
PascalCase
YamlNamingPolicy.csGets the naming policy for PascalCase.
public static YamlNamingPolicy PascalCase { get; }Property value
SnakeCaseLower
YamlNamingPolicy.csGets the naming policy for snake_case (lowercase).
public static YamlNamingPolicy SnakeCaseLower { get; }Property value
SnakeCaseUpper
YamlNamingPolicy.csGets the naming policy for SNAKE_CASE (uppercase).
public static YamlNamingPolicy SnakeCaseUpper { get; }Property value
Methods
| Name | Description |
|---|---|
| ConvertName(string) | Converts the specified name according to the policy. |