PostSharp 2023.0 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Formatters Namespace / IOption­Aware­Formatter Interface

IOptionAwareFormatter Interface

An interface that implementations of IFormattable can optionally implement to support options.

Namespace:  PostSharp.Patterns.Formatters
Assembly:  PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 2023.0.3.0 (2023.0.3.0)
Syntax
C#
public interface IOptionAwareFormatter : IFormatter

The IOptionAwareFormatter type exposes the following members.

Properties
  NameDescription
Public propertyAttributes
Gets the formatter attributes.
(Inherited from IFormatter.)
Methods
  NameDescription
Public methodWithOptions
Returns a copy of the current formatter, but for different options.
Public methodWrite
Appends the description of an object into given UnsafeStringBuilder (weakly-typed variant).
(Inherited from IFormatter.)
Extension Methods
  NameDescription
Public Extension MethodWithOptions
Returns a copy of the current formatter, but for different options.
(Defined by FormatterExtensions.)
See Also