Table of Contents

Class Words

Namespace
TypedRest.CodeGeneration.Generation
Assembly
TypedRest.CodeGeneration.dll

Turns OpenAPI keys into identifiers, using conventions that are shared across target languages.

public static class Words
Inheritance
object
Words

Methods

Capitalize(string)

Converts the first character of word to upper case.

public static string Capitalize(string word)

Parameters

word string

Returns

string

Split(string)

Splits a key into words, treating every character that may not appear in an identifier as a separator.

public static List<string> Split(string key)

Parameters

key string

Returns

List<string>

ToCamelCase(string)

Converts key to camelCase.

public static string ToCamelCase(string key)

Parameters

key string

Returns

string

ToPascalCase(string)

Converts key to PascalCase, preserving inner casing for keys that already are a single camelCase or PascalCase word.

public static string ToPascalCase(string key)

Parameters

key string

Returns

string