Base implementation of the IFormatter<T> interface.
Namespace: Flashtrace.Formatters
Assembly: Flashtrace.Formatters.dll
Syntax
public abstract class Formatter<T> : 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 | Gets the IFormatterRepository which current IFormatter uses to get formatters for other types. |
Methods
Name | Description |
---|---|
Format(UnsafeStringBuilder, object?) | Appends the description of an object into given UnsafeStringBuilder (weakly-typed variant). |
Format(UnsafeStringBuilder, T?) | Appends the description of an object into given UnsafeStringBuilder (strongly-typed variant). |
WithOptions(FormattingOptions) | An interface that implementations of IFormattable can optionally implement to support options. |