PostSharp 6.9 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Formatters Namespace / Anonymous­Type­Formatter(TKind) Class

AnonymousTypeFormatter<TKind> Class

The formatted used to for anonymous types by default.
Inheritance Hierarchy
System.Object
  PostSharp.Patterns.Formatters.AnonymousTypeFormatter<TKind>

Namespace:  PostSharp.Patterns.Formatters
Assembly:  PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 6.9.11.0 (6.9.11.0)
Syntax
C#
public sealed class AnonymousTypeFormatter<TKind> : IFormatter
where TKind : new(), FormattingRole

Type Parameters

TKind
The formatting role.

The AnonymousTypeFormatter<TKind> type exposes the following members.

Constructors
  NameDescription
Public methodAnonymousTypeFormatter<TKind>
Initializes a new AnonymousTypeFormatter<TKind> for a given Type.
Properties
  NameDescription
Public propertyAttributes
Gets the formatter attributes.
Methods
  NameDescription
Public methodWrite
Appends the description of an object into given UnsafeStringBuilder (weakly-typed variant).
See Also