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­Context­Item­Into­Local Method / Method­Mapping­Writer.​Emit­Store­Context­Item­Into­Local Method (Method­Mapping­Context­Item, Instruction­Writer, ILocal­Storage)

MethodMappingWriter.EmitStoreContextItemIntoLocal Method (MethodMappingContextItem, InstructionWriter, ILocalStorage)

Emits instructions that store a context item into an existing local variable.

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 EmitStoreContextItemIntoLocal(
	MethodMappingContextItem methodMappingContextItem,
	InstructionWriter instructionWriter,
	ILocalStorage local
)

Parameters

methodMappingContextItem
Type: PostSharp.Sdk.AspectInfrastructure.MethodMappingContextItem
The context item.
instructionWriter
Type: PostSharp.Sdk.CodeModel.InstructionWriter
An InstructionWriter.
local
Type: PostSharp.Sdk.AspectInfrastructure.ILocalStorage
The local variable into which the context item should be stored.
See Also