PostSharpAPI ReferencePost­Sharp.​Aspects.​AdvicesOn­Method­Yield­Advice
Open sandboxFocus

Class OnMethodYieldAdvice

Custom attribute that, when applied on a method of an aspect class, specifies that this method is an advice having the same semantics as OnYield(MethodExecutionArgs).

Inheritance
OnMethodYieldAdvice
Namespace: PostSharp.Aspects.Advices
Assembly: PostSharp.dll
Syntax
[RequiresMethodExecutionAdviceAnalysis]
[RequiresDebuggerEnhancement]
public sealed class OnMethodYieldAdvice : OnMethodBoundaryAdvice

Constructors

Name Description
OnMethodYieldAdvice() PostSharp.Aspects.Advices.OnMethodYieldAdvice