FormatterExtensions.WithOptions<T> Method (IFormatter<T>, FormattingOptions) |
Returns a copy of the current formatter, but for different options.
Namespace: PostSharp.Patterns.Formatters
Assembly: PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 2023.0.3.0 (2023.0.3.0)
C#
public static IFormatter<T> WithOptions<T>( this IFormatter<T> formatter, FormattingOptions options )
Parameters
- formatter
- Type: PostSharp.Patterns.Formatters.IFormatter<T>
The original formatter. - options
- Type: PostSharp.Patterns.Formatters.FormattingOptions
The new options.
Type Parameters
- T
Return Value
Type: IFormatter<T>A copy of the current formatter with the new options.