The default formatter that formats objects by calling ToString().
Namespace: PostSharp.Patterns.Formatters
Assembly: PostSharp.Patterns.Common.dll
Syntax
public sealed class DefaultFormatter<TRole, TValue> : Formatter<TValue>, IFormatter<TValue>, IOptionAwareFormatter, IFormatter where TRole : FormattingRole, new()
Type Parameters
Name | Description |
---|---|
TRole | |
TValue |
Constructors
Name | Description |
---|---|
DefaultFormatter() | Initializes a new DefaultFormatter<TRole, TValue>. |
Properties
Name | Description |
---|---|
Attributes | Gets the formatter attributes. |
Instance | Gets the default instance of the DefaultFormatter<TRole, TValue> class. |
Methods
Name | Description |
---|---|
WithOptions(FormattingOptions) | |
Write(UnsafeStringBuilder, TValue) | Appends the description of an object into given UnsafeStringBuilder (weakly-typed variant). |