PostSharp5.0//API Reference/Post­Sharp.​Patterns.​Diagnostics.​Formatters Namespace/Lazy­Formatter(TKind, T) Class

LazyFormatter<TKind, T> Class

Formatter for Lazy<T>.
Inheritance Hierarchy
System.Object
  PostSharp.Patterns.Formatters.Formatter<Lazy<T>>
    PostSharp.Patterns.Diagnostics.Formatters.LazyFormatter<TKind, T>

Namespace:  PostSharp.Patterns.Diagnostics.Formatters
Assembly:  PostSharp.Patterns.Diagnostics (in PostSharp.Patterns.Diagnostics.dll) Version: 5.0.55.0 (5.0.55.0)
Syntax
C#
public class LazyFormatter<TKind, T> : Formatter<Lazy<T>>
where TKind : new(), FormattingRole

Type Parameters

TKind
T

The LazyFormatter<TKind, T> type exposes the following members.

Constructors
  NameDescription
Public methodLazyFormatter<TKind, T>
Initializes a new instance of the LazyFormatter<TKind, T> class
Properties
  NameDescription
Public propertyAttributes (Inherited from Formatter<T>.)
Methods
  NameDescription
Public methodWrite(UnsafeStringBuilder, Lazy<T>)
Appends the description of an object into given UnsafeStringBuilder (weakly-typed variant).
(Overrides Formatter<T>.Write(UnsafeStringBuilder, T).)
Public methodWrite(UnsafeStringBuilder, Object)
Appends the description of an object into given UnsafeStringBuilder (weakly-typed variant).
(Inherited from Formatter<T>.)
Extension Methods
  NameDescription
Public Extension MethodQueryInterface<T>
Gets the implementation of a specified interface for the specified object.
(Defined by QueryInterfaceExtensions.)
See Also