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­Instance Method

MethodMappingWriter.EmitStoreInstance Method

Emits instructions that set the value of the this object (typically a struct).

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 EmitStoreInstance(
	bool cast,
	InstructionWriter writer,
	Action<InstructionWriter> loadValueAction
)

Parameters

cast
Type: System.Boolean
true if the value loaded by loadValueAction is an Object and should be unboxed, false if the value is already in the right type.
writer
Type: PostSharp.Sdk.CodeModel.InstructionWriter
An InstructionWriter.
loadValueAction
Type: System.Action<InstructionWriter>
A delegate that emits instructions that load the new value of the this object on the top of the stack.
See Also