Show / Hide Table of Contents

Interface IReflectionHandlerResolver

Interface representing a reflection provider used to resolve runtime handles.

Namespace: System.Reflection
Assembly: Nuqleon.Reflection.Virtualization.dll
Syntax
public interface IReflectionHandlerResolver

Methods

GetFieldFromHandle(RuntimeFieldHandle)

Gets a System.Reflection.FieldInfo for the field represented by the specified handle.

Declaration
FieldInfo GetFieldFromHandle(RuntimeFieldHandle handle)
Parameters
Type Name Description
System.RuntimeFieldHandle handle

A System.RuntimeFieldHandle structure that contains the handle to the internal metadata representation of a field.

Returns
Type Description
System.Reflection.FieldInfo

A System.Reflection.FieldInfo object representing the field specified by handle.

GetFieldFromHandle(RuntimeFieldHandle, RuntimeTypeHandle)

Gets a System.Reflection.FieldInfo for the field represented by the specified handle, for the specified generic type.

Declaration
FieldInfo GetFieldFromHandle(RuntimeFieldHandle handle, RuntimeTypeHandle declaringType)
Parameters
Type Name Description
System.RuntimeFieldHandle handle

A System.RuntimeFieldHandle structure that contains the handle to the internal metadata representation of a field.

System.RuntimeTypeHandle declaringType

A System.RuntimeTypeHandle structure that contains the handle to the generic type that defines the field.

Returns
Type Description
System.Reflection.FieldInfo

A System.Reflection.FieldInfo object representing the field specified by handle, in the generic type specified by declaringType.

GetMethodFromHandle(RuntimeMethodHandle)

Gets method information by using the method's internal metadata representation (handle).

Declaration
MethodBase GetMethodFromHandle(RuntimeMethodHandle handle)
Parameters
Type Name Description
System.RuntimeMethodHandle handle

The method's handle.

Returns
Type Description
System.Reflection.MethodBase

A System.Reflection.MethodBase containing information about the method.

GetMethodFromHandle(RuntimeMethodHandle, RuntimeTypeHandle)

Gets a System.Reflection.MethodBase object for the constructor or method represented by the specified handle, for the specified generic type.

Declaration
MethodBase GetMethodFromHandle(RuntimeMethodHandle handle, RuntimeTypeHandle declaringType)
Parameters
Type Name Description
System.RuntimeMethodHandle handle

A handle to the internal metadata representation of a constructor or method.

System.RuntimeTypeHandle declaringType

A handle to the generic type that defines the constructor or method.

Returns
Type Description
System.Reflection.MethodBase

A System.Reflection.MethodBase object representing the method or constructor specified by handle, in the generic type specified by declaringType.

GetTypeFromHandle(RuntimeTypeHandle)

Gets the type referenced by the specified type handle.

Declaration
Type GetTypeFromHandle(RuntimeTypeHandle handle)
Parameters
Type Name Description
System.RuntimeTypeHandle handle

The object that refers to the type.

Returns
Type Description
System.Type

The type referenced by the specified System.RuntimeTypeHandle, or null if the System.RuntimeTypeHandle.Value property of handle is null.

In This Article
Back to top Generated by DocFX