PostSharp6.6//API Reference/Post­Sharp.​Aspects.​Advices Namespace/On­Method­Boundary­Advice Class/On­Method­Boundary­Advice Properties/On­Method­Boundary­Advice.​Semantically­Advised­Method­Kinds Property

OnMethodBoundaryAdvice.SemanticallyAdvisedMethodKinds Property

Determines which target methods will be advised semantically. This affects the behavior of the advice when it's applied to iterator or async methods, which are compiled into state machines.

Namespace:  PostSharp.Aspects.Advices
Assembly:  PostSharp (in PostSharp.dll) Version: 6.6.7.0 (6.6.7.0)
Syntax
C#
public SemanticallyAdvisedMethodKinds SemanticallyAdvisedMethodKinds { get; set; }

Property Value

Type: SemanticallyAdvisedMethodKinds
Remarks

Semantic advising results in an aspect that is consistent with the level of abstraction of the programming language. This is the default behavior. You can disable semantic advising using this property to be consistent with the level of abstraction of MSIL and for backward-compatibility with the versions of PostSharp prior to 3.1.

See Also