PostSharp6.3/API Reference/Post­Sharp.​Patterns.​Formatters Namespace/Default­Formatter(TRole, TValue) Class

DefaultFormatter<TRole, TValue> Class

The default formatter that formats objects by calling ToString().
Inheritance Hierarchy
System.Object
  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: 6.3.11.0 (6.3.11.0)
Syntax
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.

Constructors
  NameDescription
Public methodDefaultFormatter<TRole, TValue>
Initializes a new DefaultFormatter<TRole, TValue>.
Properties
  NameDescription
Public propertyAttributes
Gets the formatter attributes.
(Overrides Formatter<T>.Attributes.)
Public propertyStatic memberInstance
Gets the default instance of the DefaultFormatter<TRole, TValue> class.
Methods
  NameDescription
Public methodWrite(UnsafeStringBuilder, TValue)
Appends the description of an object into given UnsafeStringBuilder (weakly-typed variant).
(Overrides Formatter<T>.Write(UnsafeStringBuilder, Object).)
Public methodWrite(UnsafeStringBuilder, Object)
Appends the description of an object into given UnsafeStringBuilder (weakly-typed variant).
(Inherited from Formatter<T>.)
See Also