MetalamaAPI documentationFlashtrace APIFlashtrace.​FormattersFormatter<T>
Open sandboxFocus

Formatter<T> Class

Base implementation of the IFormatter<T> interface.

Inheritance
System.Object
Formatter<T>
Namespace: Flashtrace.Formatters
Assembly: Flashtrace.Formatters.dll
Syntax
public abstract class Formatter<T> : Object, IFormatter<T>, IOptionAwareFormatter, IFormatter
Type Parameters
Name Description
T

Constructors

Name Description
Formatter(IFormatterRepository)

Initializes a new instance of the Formatter<T> class using the specified IFormatterRepository to access formatters for other types.

Properties

Name Description
Attributes

Gets the formatter attributes.

Repository

Methods

Name Description
Format(UnsafeStringBuilder, T)

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

Format(UnsafeStringBuilder, Object)

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

WithOptions(FormattingOptions)

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

Explicit Interface Implementations

Name Description
IOptionAwareFormatter.WithOptions(FormattingOptions)