PostSharp SDK 2023.0 / / Class Reference / Post­Sharp.​Sdk.​Aspect­Infrastructure Namespace / Method­Mapping­Writer Class / Method­Mapping­Writer Methods / Method­Mapping­Writer.​Emit­Store­By­Ref­Argument Method

MethodMappingWriter.EmitStoreByRefArgument Method

Emits instructions that set the value of an out or ref argument.

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 abstract void EmitStoreByRefArgument(
	int index,
	Action<InstructionWriter> getValueAction,
	InstructionWriter instructionWriter
)

Parameters

index
Type: System.Int32
Argument index (0 is always the first argument, even if the method is non-static).
getValueAction
Type: System.Action<InstructionWriter>
A delegate that emits instructions that load the new argument value on the stack.
instructionWriter
Type: PostSharp.Sdk.CodeModel.InstructionWriter
An InstructionWriter.
See Also