Table of Contents

Class KeyExtensions

Namespace
TypedRest.CodeGeneration.CSharp
Assembly
TypedRest.CodeGeneration.CSharp.dll

Helpers for transforming OpenAPI path/property keys before they become C# identifiers.

public static class KeyExtensions
Inheritance
object
KeyExtensions

Methods

Depluralize(string)

Returns the singular form of key using a small set of English depluralization rules. Falls back to key unchanged if no rule applies (e.g. "address" stays "address").

public static string Depluralize(this string key)

Parameters

key string

Returns

string