Skip to content

OptionFormattingUtilities Methods

Utility class for option formatting

Format(object?, object?, string?)

static
View source
public static string Format(object? key, object? value, string? formatting = null)
Formats a key-value pair using default format

Parameters

keyobject?
The key.
valueobject?
The value.
formattingstring?
The format string.

Returns

A formatted key-value pair.

Name(string?, string?)

static
View source
public static string Name<TOptions>(string? name = null, string? formatting = null)
Formats the name of an options object.

Parameters

namestring?
The options name.
formattingstring?
The format string.

Returns

The formatted options object name.