# OptionFormattingUtilities Methods

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.core/orleans.optionformattingutilities/)

## Format(object, object, string) {#format-object-object-string-896317e7}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.core/orleans.optionformattingutilities/methods/format-object-object-string-896317e7/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Core/Configuration/OptionLogger/IOptionFormatter.cs#L75-L76)

```csharp
public static string Format(object key, object value, string formatting = null)
```

Formats a key-value pair using default format

### Parameters

- `key` (`object`): The key.
- `value` (`object`): The value.
- `formatting` (`string`): The format string.

### Returns

A formatted key-value pair.

## Name(string, string) {#name-1-string-string-9664f15d}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.core/orleans.optionformattingutilities/methods/name-1-string-string-9664f15d/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Core/Configuration/OptionLogger/IOptionFormatter.cs#L88-L89)

```csharp
public static string Name<TOptions>(string name = null, string formatting = null)
```

Formats the name of an options object.

### Parameters

- `name` (`string`): The options name.
- `formatting` (`string`): The format string.

### Returns

The formatted options object name.
