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 / Method­Body­Transformation­Context.​Add­Redirection Method (Method­Body­Transformation­Redirection)

MethodBodyTransformationContext.AddRedirection Method (MethodBodyTransformationRedirection)

Namespace:  PostSharp.Sdk.AspectInfrastructure
Assembly:  PostSharp.Compiler.Engine (in PostSharp.Compiler.Engine.dll) Version: 2023.0.3.0 (2023.0.3.0)
Syntax
C#
public void AddRedirection(
	MethodBodyTransformationRedirection redirection
)

Parameters

redirection
Type: PostSharp.Sdk.AspectInfrastructure.MethodBodyTransformationRedirection
The new MethodBodyTransformationRedirection. If this parameter is null, the method call is ignored.
See Also