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

RefStructSurrogate Class

Struct that is passed to SetParameter<T>(Int32, String, ParameterKind, String, T) when the parameter is of a ref struct type. This struct wraps the return value of the ToString() method of the ref struct.

Inheritance
RefStructSurrogate
Implements
IFormattable
Namespace: PostSharp.Patterns.Diagnostics.Formatters
Assembly: PostSharp.Patterns.Diagnostics.dll
Syntax
public sealed class RefStructSurrogate : ValueType, IFormattable

Constructors

Name Description
RefStructSurrogate(String)

Initializes a new RefStructSurrogate.

Methods

Name Description
Format(UnsafeStringBuilder, FormattingRole)

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

ToString()