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

Class CollectionFormatter<TKind, T>

Formatter for any type that implements IEnumerable<T>.

Inheritance
CollectionFormatter<TKind, T>
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

Constructors

Name Description
CollectionFormatter() PostSharp.Patterns.Diagnostics.Formatters.CollectionFormatter`2

Methods

Name Description
Write(UnsafeStringBuilder, IEnumerable<T>)

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