<PackageReference Include="NJsonSchema" Version="9.4.6" />

ConversionUtilities

public class ConversionUtilities
Provides name conversion utility methods.

public static string ConvertCSharpDocBreaks(string input, int tabCount)

Converts all line breaks in a string into '\n' and removes white spaces.

public static string ConvertToCamelCase(string input)

Converts the input to a camel case identifier.

public static string ConvertToLowerCamelCase(string input, bool firstCharacterMustBeAlpha)

Converts the first letter to lower case and dashes to camel case.

public static string ConvertToStringLiteral(string input)

Converts the string to a string literal which can be used in C# or TypeScript code.

public static string ConvertToUpperCamelCase(string input, bool firstCharacterMustBeAlpha)

Converts the first letter to upper case and dashes to camel case.

public static string RemoveLineBreaks(string text)

Removes the line breaks from the text.

public static string Tab(string input, int tabCount)

Add tabs to the given string.

public static string TrimWhiteSpaces(string text)

Trims white spaces from the text.