PostSharp SDK 2023.0 / / Class Reference / Post­Sharp.​Sdk.​Aspect­Weaver.​Transformations Namespace / Method­Body­Transformation­Instance Class / Method­Body­Transformation­Instance Methods / Method­Body­Transformation­Instance.​Get­Options Method

MethodBodyTransformationInstance.GetOptions Method

Gets options that allow the aspect framework to predict the behavior of the Implement(MethodBodyTransformationContext) method.

Namespace:  PostSharp.Sdk.AspectWeaver.Transformations
Assembly:  PostSharp.Compiler.Engine (in PostSharp.Compiler.Engine.dll) Version: 2023.0.3.0 (2023.0.3.0)
Syntax
C#
public abstract MethodBodyTransformationOptions GetOptions(
	MetadataDeclaration originalTargetElement,
	MethodSemantics semantic
)

Parameters

originalTargetElement
Type: PostSharp.Sdk.CodeModel.MetadataDeclaration
Element of code to which the transformation will be applied.
semantic
Type: PostSharp.Sdk.CodeModel.MethodSemantics
Semantic of the method (if the method is a member of a property or event).

Return Value

Type: MethodBodyTransformationOptions
Options that allow the aspect framework to predict the behavior of the Implement(MethodBodyTransformationContext) method

Implements

IMethodBodyTransformationInstance.GetOptions(MetadataDeclaration, MethodSemantics)
See Also