PostSharp SDK 6.10 / / Class Reference / Post­Sharp.​Sdk.​Aspect­Weaver Namespace / Advice­Args­Builder Class / Advice­Args­Builder Methods / Advice­Args­Builder.​Emit­Load­Reflection­Object Method

AdviceArgsBuilder.EmitLoadReflectionObject Method

Emits instructions that load the reflection object associated with the AdviceArgs.

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 EmitLoadReflectionObject(
	AspectWeaverInstance aspectWeaverInstance,
	MetadataDeclaration declaration,
	IType declaringType,
	InstructionWriter writer
)

Parameters

aspectWeaverInstance
Type: PostSharp.Sdk.AspectWeaver.AspectWeaverInstance
The AspectWeaverInstance for which the reflection object is loaded.
declaration
Type: PostSharp.Sdk.CodeModel.MetadataDeclaration
The declaration whose reflection object should be loaded.
declaringType
Type: PostSharp.Sdk.CodeModel.IType
The declaring type of declaration. This parameter must always be specified if declaration is a type member. In case of a method or a field, the declaringType is trivial; however, there is no other way to refer to a property or event of a generic type instance than by specifying the declaring type explicitly.
writer
Type: PostSharp.Sdk.CodeModel.InstructionWriter
An InstructionWriter.
See Also