PostSharp6.3/API Reference/Post­Sharp.​Aspects Namespace/Semantically­Advised­Method­Kinds Enumeration

SemanticallyAdvisedMethodKinds Enumeration

Enumerates possible target methods for semantic advising.

Namespace:  PostSharp.Aspects
Assembly:  PostSharp (in PostSharp.dll) Version: 6.3.11.0 (6.3.11.0)
Syntax
C#
[FlagsAttribute]
public enum SemanticallyAdvisedMethodKinds
Members
  Member nameValueDescription
None0 Do not use semantic advising.
Async1 Apply semantic advising to async methods.
ReturnsAwaitable2 Apply semantic advising to methods that return any awaitable type (e.g. System.Threading.Tasks.Task).
Iterator4 Apply semantic advising to iterator methods (methods that use yield statements).
ReturnsEnumerable8 Apply semantic advising to methods that return IEnumerable, IEnumerator, IEnumerable<T>, IEnumerator<T>.
Default7 The default behavior includes Async, ReturnsAwaitable, Iterator.
All15 Apply semantic advising to all possible target methods.
Remarks
When semantic advising is enabled the advices work at the abstraction level of the original programming language. For example, advices are applied to the underlying async state machine instead of the public async method the starts the state machine.
See Also