PostSharp SDK6.7//Post­Sharp.​Sdk.​Code­Model Namespace/IMetadata­Declaration Interface/IMetadata­Declaration Methods/IMetadata­Declaration.​Get­Reflection­Object Method

IMetadataDeclaration.GetReflectionObject Method

Gets the system, runtime object (Type, FieldInfo, MethodInfo, ParameterInfo, ...) corresponding to the current declaration.

Namespace:  PostSharp.Sdk.CodeModel
Assembly:  PostSharp.Compiler.Engine (in PostSharp.Compiler.Engine.dll) Version: 6.7.10.0 (6.7.10.0)
Syntax
C#
Object GetReflectionObject(
	Type[] genericTypeArguments,
	Type[] genericMethodArguments,
	BindingOptions options
)

Parameters

genericTypeArguments
Type: System.Type[]
Array of generic type arguments in the current context, or null if there is no generic type arguments in the current context.
genericMethodArguments
Type: System.Type[]
Array of generic method arguments in the current context, or null if there is no generic type arguments in the current context.
options
Type: PostSharp.Sdk.CodeModel.BindingOptions
Options.

Return Value

Type: Object
The system object associated the current type in the given generic context.
See Also