PostSharpAPI ReferencePost­Sharp.​Patterns.​Diagnostics.​FormattersRef­Struct­SurrogateFormat
Open sandboxFocus

RefStructSurrogate.Format Method

Format(UnsafeStringBuilder, FormattingRole)

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

Declaration
public 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).

Implements
IFormattable.Format(UnsafeStringBuilder, FormattingRole)