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

MethodBodyTransformationContext.AddRedirection Method

Overload List
  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.
See Also