PostSharpAPI ReferencePost­Sharp.​Patterns.​Diagnostics.​FormattersCollection­Formatter<TKind, T>
Open sandboxFocus

CollectionFormatter<TKind, T> Class

Formatter for any type that implements System.Collections.Generic.IEnumerable<>.

Inheritance
Formatter<System.Collections.Generic.IEnumerable<T>>
CollectionFormatter<TKind, T>
Implements
IFormatter<System.Collections.Generic.IEnumerable<T>>
IOptionAwareFormatter
IFormatter
Namespace: PostSharp.Patterns.Diagnostics.Formatters
Assembly: PostSharp.Patterns.Diagnostics.dll
Syntax
public class CollectionFormatter<TKind, T> : Formatter<IEnumerable<T>>, IFormatter<IEnumerable<T>>, IOptionAwareFormatter, IFormatter where TKind : FormattingRole, new()
Type Parameters
Name Description
TKind
T
Remarks

Types that implement IQueryable are formatted by the QueryableFormatter class.

Constructors

Name Description
CollectionFormatter()

Methods

Name Description
Write(UnsafeStringBuilder, IEnumerable<T>)

Appends the description of an object into given UnsafeStringBuilder (weakly-typed variant).