Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Formatters Namespace / IFormattable Interface

IFormattable Interface

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.

Namespace:  PostSharp.Patterns.Formatters
Assembly:  PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 6.0.24.0 (6.0.24.0)
Syntax
C#
public interface IFormattable

The IFormattable type exposes the following members.

Methods
  NameDescription
Public methodFormat
Appends a description of the current object to a given UnsafeStringBuilder.
See Also