MethodBodyTransformationOptions Enumeration |
Options returned by GetOptions(MetadataDeclaration, MethodSemantics).
Namespace: PostSharp.Sdk.AspectInfrastructure
Assembly: PostSharp.Compiler.Engine (in PostSharp.Compiler.Engine.dll) Version: 2023.0.3.0 (2023.0.3.0)
C#
[FlagsAttribute] public enum MethodBodyTransformationOptions
Member name | Value | Description | |
---|---|---|---|
None | 0 | None. | |
UseBindingType | 1 | Specifies that the transformation creates a binding type (because it's an interception transformation). The effect of this is that MoveMethodBodyTransformationPipeline will be used. | |
CreateBranch | 2 | Obsolete. Specifies that the transformation creates a branch in the transformation pipeline. | |
CreateMethodBody | 4 | Specifies that the transformation creates a method body if the method is abstract or extern. | |
ModifyStateMachine | 8 | Obsolete. | |
CreateAsyncStateMachine | 16 | Obsolete. | |
StateMachineAware | 24 | ||
YieldResumeAware | 32 | ||
RequiresCustomAwaiter | 64 | ||
RequiresAwaitedTask | 128 | ||
RequiresAwaitedMethod | 256 | ||
RequiresAsyncCallId | 512 |