PostSharpAPI ReferencePost­Sharp.​Patterns.​FormattersAnonymous­Type­Formatter<TKind>
Open sandboxFocus

AnonymousTypeFormatter<TKind> Class

The formatted used to for anonymous types by default.

Inheritance
AnonymousTypeFormatter<TKind>
Implements
IFormatter
Namespace: PostSharp.Patterns.Formatters
Assembly: PostSharp.Patterns.Common.dll
Syntax
public sealed class AnonymousTypeFormatter<TKind> : Object, IFormatter where TKind : FormattingRole, new()
Type Parameters
Name Description
TKind

The formatting role.

Constructors

Name Description
AnonymousTypeFormatter(Type)

Initializes a new AnonymousTypeFormatter<TKind> for a given System.Type.

Properties

Name Description
Attributes

Gets the formatter attributes.

Methods

Name Description
Write(UnsafeStringBuilder, Object)

Appends the description of an object into given UnsafeStringBuilder (weakly-typed variant).