MethodBodyTransformationRedirection Class |
Encapsulates the information by which an IMethodBodyTransformationInstance
specifies in which InstructionBlock the next transformation
should emit its instructions, and related pieces of information.
Namespace: PostSharp.Sdk.AspectInfrastructure
Assembly: PostSharp.Compiler.Engine (in PostSharp.Compiler.Engine.dll) Version: 2023.0.3.0 (2023.0.3.0)
C#
public sealed class MethodBodyTransformationRedirection
The MethodBodyTransformationRedirection type exposes the following members.
Name | Description | |
---|---|---|
MethodBodyTransformationRedirection() |
Creates a new, empty instance of MethodBodyTransformationRedirection,
representing no redirection.
| |
MethodBodyTransformationRedirection(InstructionBlock, InstructionSequence) |
Initializes a new MethodBodyTransformationRedirection by specifying an
InstructionBlock, typically in the current method body.
| |
MethodBodyTransformationRedirection(InstructionBlock, InstructionSequence, MethodMapping, LocalVariableSymbol) |
Initializes a new MethodBodyTransformationRedirection by specifying an
InstructionBlock, typically in a different method body, and
the corresponding MethodMapping.
|
Name | Description | |
---|---|---|
InstructionBlock |
Gets or sets the InstructionBlock in which the next transformation should emit its instructions.
nulll if the InstructionBlock is unchanged.
| |
LeaveBranchTarget |
Gets or sets the InstructionSequence to which the next transformation should redirect the instruction flow
when exiting, instead of calling the ret instruction.
null if the target is unchanged.
| |
MethodMapping |
Gets or sets the MethodMapping that maps the context of the new InstructionBlock
to the original method. null if the method mapping is unchanged.
| |
ReturnVariable |
Gets or sets the local variable into which the next transformation should store the return value.
null if the return value is unchanged.
|
Name | Description | |
---|---|---|
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
SetPipelineStateItem |
Sets a piece of information that will be made available to next transformations in the branch created by the
current MethodBodyTransformationRedirection. This piece of information can be retrieved
by GetPipelineStateItem(Object).
| |
ToString | Returns a string that represents the current object. (Inherited from Object.) |