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: 2023.0.3.0 (2023.0.3.0)
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).