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: 2023.0.3.0 (2023.0.3.0)
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.