PostSharp 2023.0 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Aspects.​Configuration Namespace / On­Method­Boundary­Aspect­Configuration Class / On­Method­Boundary­Aspect­Configuration Properties / On­Method­Boundary­Aspect­Configuration.​Semantically­Advised­Method­Kinds Property

OnMethodBoundaryAspectConfiguration.SemanticallyAdvisedMethodKinds Property

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

Namespace:  PostSharp.Aspects.Configuration
Assembly:  PostSharp (in PostSharp.dll) Version: 2023.0.3.0 (2023.0.3.0)
public Nullable<SemanticallyAdvisedMethodKinds> SemanticallyAdvisedMethodKinds { get; set; }

Property Value

Type: Nullable<SemanticallyAdvisedMethodKinds>

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