PostSharpAPI ReferencePost­Sharp.​Patterns.​FormattersFormatter<T>
Open sandboxFocus

Formatter<T> Class

Base implementation of the IFormatter<T> interface.

Namespace: PostSharp.Patterns.Formatters
Assembly: PostSharp.Patterns.Common.dll
Syntax
public abstract class Formatter<T> : Object, IFormatter<T>, IOptionAwareFormatter, IFormatter
Type Parameters
Name Description
T

Constructors

Name Description
Formatter()

Properties

Name Description
Attributes

Gets the formatter attributes.

Methods

Name Description
WithOptions(FormattingOptions)
Write(UnsafeStringBuilder, T)

Appends the description of an object into given UnsafeStringBuilder (weakly-typed variant).

Write(UnsafeStringBuilder, Object)

Appends the description of an object into given UnsafeStringBuilder (weakly-typed variant).

Explicit Interface Implementations

Name Description
IOptionAwareFormatter.WithOptions(FormattingOptions)