WithOptions<T>(IFormatter<T>, FormattingOptions)
Returns a copy of the current formatter, but for different options.
Declaration
public static IFormatter<T> WithOptions<T>(this IFormatter<T> formatter, FormattingOptions options)
Parameters
Type | Name | Description |
---|---|---|
IFormatter<T> | formatter | The original formatter. |
FormattingOptions | options | The new options. |
Returns
Type | Description |
---|---|
IFormatter<T> | A copy of the current formatter with the new |
Type Parameters
Name | Description |
---|---|
T |
WithOptions(IFormatter, FormattingOptions)
Returns a copy of the current formatter, but for different options.
Declaration
public static IFormatter WithOptions(this IFormatter formatter, FormattingOptions options)
Parameters
Type | Name | Description |
---|---|---|
IFormatter | formatter | The original formatter. |
FormattingOptions | options | The new options. |
Returns
Type | Description |
---|---|
IFormatter | A copy of the current formatter with the new |