MethodExecutionArgs.YieldValue Property |
Gets or sets the value yielded by the iterator method.
Namespace: PostSharp.Aspects
Assembly: PostSharp (in PostSharp.dll) Version: 6.5.15.0 (6.5.15.0)


This property is only available inside the OnYield(MethodExecutionArgs) advice when the current method is an iterator method.
![]() |
---|
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. |
