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

IFormattable.Format Method

Format(UnsafeStringBuilder, FormattingRole)

Appends a description of the current object to a given UnsafeStringBuilder.

Declaration
void Format(UnsafeStringBuilder stringBuilder, FormattingRole role)
Parameters
Type Name Description
UnsafeStringBuilder stringBuilder

The UnsafeStringBuilder to which the object description should be written.

FormattingRole role

An object describing in which context the object is being formatted (e.g. caching or logging).