Open sandboxFocus

Property YieldValue

YieldValue

Gets or sets the value yielded by the iterator method.

Declaration
public object YieldValue { get; set; }
Property Value
Type Description
object
Remarks

This property is only available inside the OnYield(MethodExecutionArgs) advice when the current method is an iterator method.

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.

See Also