System.ModuleHandle.ResolveMethodHandle Method

Returns a runtime method handle for the method or constructor identified by the specified metadata token, specifying the generic type arguments of the type and method where the token is in scope.

Syntax

public RuntimeMethodHandle ResolveMethodHandle (int methodToken, RuntimeTypeHandle[] typeInstantiationContext, RuntimeTypeHandle[] methodInstantiationContext)

Parameters

methodToken
A metadata token that identifies a method or constructor in the module.
typeInstantiationContext
An array of RuntimeTypeHandle structures representing the generic type arguments of the type where the token is in scope, or null if that type is not generic.
methodInstantiationContext
An array of RuntimeTypeHandle structures representing the generic type arguments of the method where the token is in scope, or null if that method is not generic.

Returns

A RuntimeMethodHandle for the method or constructor identified by methodToken.

Remarks

Note:

Information about metadata tokens can be found in the Common Language Infrastructure (CLI) documentation, especially "Partition II: Metadata Definition and Semantics". The documentation is available online; see tp://go.microsoft.com/fwlink/?LinkID=99212 on MSDN and tp://go.microsoft.com/fwlink/?LinkID=65552 on the Ecma International Web site.

Requirements

Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0