Assembly: PostSharp (in PostSharp.dll) Version: 188.8.131.52 (184.108.40.206)
public virtual void OnYield( MethodExecutionArgs args )
- Type: PostSharp.Aspects.MethodExecutionArgs
Event arguments specifying which method is being executed and which are its arguments. In iterator methods, the YieldValue property gives access to the operand of the yield return statement.
In iterator methods, this advise is exactly executed at the yield return statement.
In async methods, the advice is executed just after the state machine starts waiting as a result of the await statement. In case the operand of the await statement is an operation that completed synchronously, the state machine does not yield, and the OnYield(MethodExecutionArgs) advise won't be invoked.