PostSharpAPI ReferencePost­Sharp.​Patterns.​Formatters
Open sandboxFocus

PostSharp.Patterns.Formatters Namespace

Classes

AnonymousTypeFormatter<TKind>

The formatted used to for anonymous types by default.

BooleanFormatter

A formatter for System.Boolean values.

ByteFormatter

A formatter for System.Byte values.

CharFormatter

A formatter for System.Char values.

CharSpan

Represents a span of System.Char by encapsulating a substring or a range of a System.Char array.

DefaultFormatter<TRole, TValue>

The default formatter that formats objects by calling ToString().

EnumFormatter

Efficient formatter for enums.

EnumFormatter<T>

Efficient formatter for enums.

Formatter<T>

Base implementation of the IFormatter<T> interface.

FormatterAttributes

Attributes of an IFormatter.

FormatterExtensions

Extension methods for the IFormatter interface.

FormatterRepository<TRole>

Allows to get and register formatters for a specific type.

FormattingOptions

Options that influence the formatting of an object by an IOptionAwareFormatter.

FormattingRole

Base for kind marker types for FormatterRepository<TRole>.

Int16Formatter

Efficient formatter for System.Int16.

Int32Formatter

Efficient formatter for System.Int32.

Int64Formatter

Efficient formatter for Int64.

MethodFormatter

A formatter for System.Reflection.MethodBase values.

SByteFormatter

Efficient formatter for System.SByte.

StringFormatter

A formatter for String values.

TypeFormatter

A Formatter<T> for System.Type values.

UInt16Formatter

A formatter for UInt16 values.

UInt32Formatter

A formatter for System.UInt32 values.

UInt64Formatter

A formatter for UInt64 values.

UnsafeString

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.

UnsafeStringBuilder

A class similar to System.Text.StringBuilder, but implemented using unsafe C#.

UnsafeStringBuilderPool

A thread-safe pool of UnsafeStringBuilder.

Interfaces

IFormattable

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.

IFormatter

Appends the description of an object into an UnsafeStringBuilder. Weakly-typed variant of IFormatter<T>.

IFormatter<T>

Appends the description of an object into an UnsafeStringBuilder. Strongly-typed variant of IFormatter.

IOptionAwareFormatter

An interface that implementations of IFormattable can optionally implement to support options.