Open sandboxFocus

Class TypeFormatter

A Formatter<T> for Type values.

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

Constructors

Name Description
TypeFormatter(bool)

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).

Extension Methods