PostSharpAPI ReferencePost­Sharp.​Patterns.​RecordingOperationOperation­Descriptor
Open sandboxFocus

Operation.OperationDescriptor Property

OperationDescriptor

Gets the IOperationDescriptor, which is used by the OperationFormatter to produce a human-readable description of the current operation.

Declaration
public virtual IOperationDescriptor OperationDescriptor { get; }
Property Value
Type Description
IOperationDescriptor
Remarks

By default, the OperationDescriptor property returns the current Operation.

When the Operation represents a user-defined scope, the property evaluates to an instance of the NamedOperationDescriptor class. When it represents a method scope, it evaluates to an instance of the MethodExecutionOperationDescriptor class.