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

IFormattable.Format Method

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

Namespace:  PostSharp.Patterns.Formatters
Assembly:  PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 5.0.51.0 (5.0.51.0)
Syntax
C#
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).
See Also