PostSharpAPI ReferencePost­Sharp.​Patterns.​FormattersType­Formatter
Open sandboxFocus

TypeFormatter Class

A Formatter<T> for System.Type values.

Inheritance
Formatter<System.Type>
TypeFormatter
Implements
IFormatter<System.Type>
IOptionAwareFormatter
IFormatter
Namespace: PostSharp.Patterns.Formatters
Assembly: PostSharp.Patterns.Common.dll
Syntax
public sealed class TypeFormatter : Formatter<Type>, IFormatter<Type>, IOptionAwareFormatter, IFormatter

Constructors

Name Description
TypeFormatter(Boolean)

Initializes a new TypeFormatter and specifies whether it should include namespaces.

Fields

Name Description
Instance

The default instance of TypeFormatter, which includes namespaces.

Methods

Name Description
Write(UnsafeStringBuilder, Type)

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