PostSharp6.2/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: 6.2.13.0 (6.2.13.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
Gets the formatter attributes.
(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>.)
See Also