PostSharp SDK 2023.0 / / Class Reference / Post­Sharp.​Sdk.​Aspect­Infrastructure Namespace / Method­Body­Transformation­Context Class / Method­Body­Transformation­Context Methods

MethodBodyTransformationContext Methods

The MethodBodyTransformationContext type exposes the following members.

Methods
  NameDescription
Public methodAddRedirection(MethodBodyTransformationRedirection)
Public methodAddRedirection(InstructionBlock, InstructionSequence)
Adds a MethodBodyTransformationRedirection by specifying an instruction block (inside the current method) in which the next transformation should add its implementation, but without changing the method mapping or the local variable storing the return value.
Public methodAddRedirection(InstructionBlock, InstructionSequence, MethodMapping, LocalVariableSymbol)
Adds a MethodBodyTransformationRedirection by specifying an instruction block (typically in a different method) in which the next transformation should add its implementation, a different method mapping and a local variable storing the return value.
Public methodClone
Creates a new object that is a copy of the current instance.
(Overrides TransformationContext.Clone().)
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetPipelineStateItem
Gets state information that has been previously stored with the method SetPipelineStateItem(Object, Object).
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodTerminatePipeline
Prevents further transformations of the pipeline to be executed.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
See Also