Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

OfficeNamingPolicy

OfficeIMO

Namespace
OfficeIMO
Assembly
OfficeIMO.Core
Source revision
ac7e6e1bad8a with working tree changes
Modifiers
abstract

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.

Methods

public abstract string ConvertName(string name) #

Returns the key for a property name.

Parameters

name string required
The .NET property name.

Returns

string

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.