DefaultFormatter<TRole, TValue> Class |
The default formatter that formats objects by calling ToString().
System.Object
PostSharp.Patterns.Formatters.Formatter<TValue>
PostSharp.Patterns.Formatters.DefaultFormatter<TRole, TValue>
PostSharp.Patterns.Formatters.Formatter<TValue>
PostSharp.Patterns.Formatters.DefaultFormatter<TRole, TValue>
Namespace: PostSharp.Patterns.Formatters
Assembly: PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 2023.0.3.0 (2023.0.3.0)
C#
public sealed class DefaultFormatter<TRole, TValue> : Formatter<TValue> where TRole : new(), FormattingRole
Type Parameters
- TRole
- TValue
The DefaultFormatter<TRole, TValue> type exposes the following members.
Name | Description | |
---|---|---|
DefaultFormatter<TRole, TValue> |
Initializes a new DefaultFormatter<TRole, TValue>.
|
Name | Description | |
---|---|---|
Attributes |
Gets the formatter attributes.
(Overrides Formatter<T>.Attributes.) | |
Instance |
Gets the default instance of the DefaultFormatter<TRole, TValue> class.
|
Name | Description | |
---|---|---|
WithOptions | (Overrides Formatter<T>.WithOptions(FormattingOptions).) | |
Write(UnsafeStringBuilder, TValue) |
Appends the description of an object into given UnsafeStringBuilder (weakly-typed variant).
(Overrides Formatter<T>.Write(UnsafeStringBuilder, Object).) | |
Write(UnsafeStringBuilder, Object) |
Appends the description of an object into given UnsafeStringBuilder (weakly-typed variant).
(Inherited from Formatter<T>.) |