ReturnValue
Gets or sets the return value of the method.
Declaration
public abstract object ReturnValue { get; set; }Property Value
| Type | Description |
|---|---|
| object |
Remarks
This property is set by Proceed(). To make the intercepted method return a different value, set this property after calling Proceed(), or instead of calling it.
note
As a result of weaving optimizations, the value of this property may appear as null in a debugger.
If you need to inspect the value at runtime, consider disabling aspect optimizations in the debug build configuration.