YieldValue
Gets or sets the value yielded by the iterator method.
Declaration
public object YieldValue { get; set; }Property Value
| Type | Description |
|---|---|
| object |
Remarks
<p>
This property is only available inside the <xref href="PostSharp.Aspects.IOnStateMachineBoundaryAspect.OnYield(PostSharp.Aspects.MethodExecutionArgs)" data-throw-if-not-resolved="false"></xref> advice
when the current method is an iterator method.
</p>
<div class="NOTE"><h5>note</h5><p>
As a result of weaving optimizations, value of this property may be seen as null in a debugger.
If you need to inspect the value in runtime, consider disabling aspect optimizations in the debug build configuration.