PostSharp SDK 2023.0 / / Class Reference / Post­Sharp.​Sdk.​Aspect­Infrastructure Namespace / Method­Mapping­Writer Class / Method­Mapping­Writer Methods / Method­Mapping­Writer.​Emit­Load­Instance Method

MethodMappingWriter.EmitLoadInstance Method

Emits instructions that load the this value on the stack.

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 EmitLoadInstance(
	bool cast,
	InstructionWriter instructionWriter
)

Parameters

cast
Type: System.Boolean
true if the this value should be pushed to the stack as strongly-typed, false if it should be pushed as an Object.
instructionWriter
Type: PostSharp.Sdk.CodeModel.InstructionWriter
An InstructionWriter.
See Also