PostSharp6.4//API Reference/Post­Sharp.​Patterns.​Diagnostics.​Formatters Namespace/Ref­Struct­Surrogate Structure/Ref­Struct­Surrogate Methods/Ref­Struct­Surrogate.​Format Method

RefStructSurrogate.Format Method

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

Namespace:  PostSharp.Patterns.Diagnostics.Formatters
Assembly:  PostSharp.Patterns.Diagnostics (in PostSharp.Patterns.Diagnostics.dll) Version: 6.4.11.0 (6.4.11.0)
Syntax
C#
public void Format(
	UnsafeStringBuilder stringBuilder,
	FormattingRole role
)

Parameters

stringBuilder
Type: PostSharp.Patterns.Formatters.UnsafeStringBuilder
The UnsafeStringBuilder to which the object description should be written.
role
Type: PostSharp.Patterns.Formatters.FormattingRole
An object describing in which context the object is being formatted (e.g. caching or logging).

Implements

IFormattable.Format(UnsafeStringBuilder, FormattingRole)
See Also