PostSharp 4.3 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Aspects.​Advices Namespace / On­Method­Boundary­Advice Class / On­Method­Boundary­Advice Properties / On­Method­Boundary­Advice.​Apply­To­State­Machine Property
OnMethodBoundaryAdvice.ApplyToStateMachine Property
Determines how the advice should behave when it is applied to an iterator or async methods, which are compiled into state machines.

Namespace: PostSharp.Aspects.Advices
Assembly: PostSharp (in PostSharp.dll) Version: (
public bool ApplyToStateMachine { get; set; }

Property Value

Type: Boolean

For detailed documentation, see ApplyToStateMachine.

See Also