PostSharp SDK 2023.0 / / Class Reference / Post­Sharp.​Sdk.​Aspect­Weaver.​Transformations Namespace / Arguments­Writer Class / Arguments­Writer Methods / Arguments­Writer.​Emit­Store­Argument Method / Arguments­Writer.​Emit­Store­Argument Method (Int32, Instruction­Writer, Action(Instruction­Writer))

ArgumentsWriter.EmitStoreArgument Method (Int32, InstructionWriter, Action<InstructionWriter>)

Emits instructions that store a value, loaded on the stack by the instructions emitted by a given delegate, into the Arguments object under the given index.

Namespace:  PostSharp.Sdk.AspectWeaver.Transformations
Assembly:  PostSharp.Compiler.Engine (in PostSharp.Compiler.Engine.dll) Version: 2023.0.3.0 (2023.0.3.0)
Syntax
C#
public abstract void EmitStoreArgument(
	int index,
	InstructionWriter instructionWriter,
	Action<InstructionWriter> loadValueAction
)

Parameters

index
Type: System.Int32
Argument index.
instructionWriter
Type: PostSharp.Sdk.CodeModel.InstructionWriter
An InstructionWriter.
loadValueAction
Type: System.Action<InstructionWriter>
A delegate that emits instructions that load the value to be stored.
See Also