PostSharp6.6//API Reference/Post­Sharp.​Patterns.​Formatters Namespace/Type­Formatter Class

TypeFormatter Class

A Formatter<T> for Type values.
Inheritance Hierarchy
System.Object
  PostSharp.Patterns.Formatters.Formatter<Type>
    PostSharp.Patterns.Formatters.TypeFormatter

Namespace:  PostSharp.Patterns.Formatters
Assembly:  PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 6.6.10.0 (6.6.10.0)
Syntax
C#
public sealed class TypeFormatter : Formatter<Type>

The TypeFormatter type exposes the following members.

Properties
  NameDescription
Public propertyAttributes
Gets the formatter attributes.
(Inherited from Formatter<T>.)
Methods
  NameDescription
Public methodWrite(UnsafeStringBuilder, Object)
Appends the description of an object into given UnsafeStringBuilder (weakly-typed variant).
(Inherited from Formatter<T>.)
Public methodWrite(UnsafeStringBuilder, Type)
Appends the description of an object into given UnsafeStringBuilder (weakly-typed variant).
(Overrides Formatter<T>.Write(UnsafeStringBuilder, T).)
Fields
  NameDescription
Public fieldStatic memberInstance
The singleton instance of TypeFormatter.
See Also