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, Boolean)

MethodMappingWriter.EmitStoreContextItemIntoLocal Method (MethodMappingContextItem, InstructionWriter, ILocalStorage, Boolean)

Emits instructions that store the value of a context item into a local variable, creates and returns the local variable if it has not been passed by the caller, and returns a value indicating whether the value stored may be null at run time.

Namespace:  PostSharp.Sdk.AspectInfrastructure
Assembly:  PostSharp.Compiler.Engine (in PostSharp.Compiler.Engine.dll) Version: 2023.0.3.0 (2023.0.3.0)
public abstract void EmitStoreContextItemIntoLocal(
	MethodMappingContextItem methodMappingContextItem,
	InstructionWriter instructionWriter,
	ref ILocalStorage local,
	out bool mayBeNull


Type: PostSharp.Sdk.AspectInfrastructure.MethodMappingContextItem
The context item.
Type: PostSharp.Sdk.CodeModel.InstructionWriter
An InstructionWriter.
Type: PostSharp.Sdk.AspectInfrastructure.ILocalStorage
The local storage into which the context item is stored. If the input value of this parameter is null, the local variable is created.
Type: System.Boolean
At output, true if the value of local can be null at run time, false if it guaranteed to contain the required context item.
See Also