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

CollectionFormatter<TKind, T> Class

Formatter for any type that implements IEnumerable<T>.
Inheritance Hierarchy
System.Object
  PostSharp.Patterns.Formatters.Formatter<IEnumerable<T>>
    PostSharp.Patterns.Diagnostics.Formatters.CollectionFormatter<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 CollectionFormatter<TKind, T> : Formatter<IEnumerable<T>>
where TKind : new(), FormattingRole

Type Parameters

TKind
T

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

Constructors
  NameDescription
Public methodCollectionFormatter<TKind, T>
Initializes a new instance of the CollectionFormatter<TKind, T> class
Properties
  NameDescription
Public propertyAttributes (Inherited from Formatter<T>.)
Methods
  NameDescription
Public methodWrite(UnsafeStringBuilder, IEnumerable<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