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, 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.

See Also