PostSharp SDK 6.10 / / Class Reference / Post­Sharp.​Sdk.​Aspect­Weaver Namespace / Reflection­Object­Builder Class / Reflection­Object­Builder Methods / Reflection­Object­Builder.​Emit­Load­Runtime­Reflection­Object Method / Reflection­Object­Builder.​Emit­Load­Runtime­Reflection­Object Method (IMetadata­Declaration, Object, Generic­Map, Instruction­Writer)

ReflectionObjectBuilder.EmitLoadRuntimeReflectionObject Method (IMetadataDeclaration, Object, GenericMap, InstructionWriter)

Emits instruction that load the reflection object corresponding to a declaration on the stack.

Namespace:  PostSharp.Sdk.AspectWeaver
Assembly:  PostSharp.Compiler.Engine (in PostSharp.Compiler.Engine.dll) Version: 6.10.14.0 (6.10.14.0)
Syntax
C#
public void EmitLoadRuntimeReflectionObject(
	IMetadataDeclaration declaration,
	Object parentDeclaration,
	GenericMap genericContext,
	InstructionWriter writer
)

Parameters

declaration
Type: PostSharp.Sdk.CodeModel.IMetadataDeclaration
Declaration whose reflection object should be loaded.
parentDeclaration
Type: System.Object
genericContext
Type: PostSharp.Sdk.CodeModel.GenericMap
writer
Type: PostSharp.Sdk.CodeModel.InstructionWriter
An InstructionWriter.
See Also