OfficeNamingPolicy
OfficeIMO
Converts .NET property names to the keys the OfficeIMO serializers write and read. The built-in policies cover the conventions configuration files use: OfficeNamingPolicy.CamelCase (Kubernetes, OpenAPI), OfficeNamingPolicy.SnakeCaseLower (Compose, Ansible, pyproject.toml) and OfficeNamingPolicy.KebabCaseLower (GitHub Actions, Cargo.toml). Derive from it for another convention.
Inheritance
- object
- OfficeNamingPolicy
Usage
Explore 3 API references to this type
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by 3
- Property OfficeNamingPolicy.CamelCase
- Property OfficeNamingPolicy.KebabCaseLower
- Property OfficeNamingPolicy.SnakeCaseLower
Methods
public abstract string ConvertName(string name) #Returns the key for a property name.
Parameters
- name string
- The .NET property name.
Returns
stringInherited Methods
Properties
public static OfficeNamingPolicy CamelCase { get; } #Gets the policy that writes imagePullPolicy for ImagePullPolicy.
public static OfficeNamingPolicy SnakeCaseLower { get; } #Gets the policy that writes image_pull_policy for ImagePullPolicy.
public static OfficeNamingPolicy KebabCaseLower { get; } #Gets the policy that writes image-pull-policy for ImagePullPolicy.