This is the online documentation for PostSharp 5.0.
Download PDF or CHM. Go to v4.3 or v5.0

PostSharp.Patterns.Formatters Namespace

Public classFormatter<T>
Base implementation of the IFormatter<T> interface.
Public classFormatterRepository<TRole>
Allows to get and register formatters for a specific type.
Public classFormattingRole
Base for kind marker types for FormatterRepository<TRole>.
Public classUnsafeString
A generalized representation of a string that can be either backed by a system String, a char[], or an UnsafeStringBuilder. Conversions between these types happen transparently and are cached.
Public classUnsafeStringBuilder
A class similar to StringBuilder, but implemented using unsafe C#.
Public classUnsafeStringBuilderPool
A thread-safe pool of UnsafeStringBuilder.
Public interfaceIFormattable
Exposes a Format(UnsafeStringBuilder, FormattingRole) method, which allows an object to format itself into an UnsafeStringBuilder. Logging and caching components rely on the IFormattable interface.
Public interfaceIFormatter
Appends the description of an object into an UnsafeStringBuilder. Weakly-typed variant of IFormatter<T>.
Public interfaceIFormatter<T>
Appends the description of an object into an UnsafeStringBuilder. Strongly-typed variant of IFormatter.
Public enumerationFormatterAttributes
Attributes of an IFormatter.