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)
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: MethodBodyTransformationOptionsOptions that allow the aspect framework to predict the behavior of the Implement(MethodBodyTransformationContext) method