153 {
155 typeInstantiationContext = (RuntimeTypeHandle[])typeInstantiationContext?.
Clone();
156 methodInstantiationContext = (RuntimeTypeHandle[])methodInstantiationContext?.
Clone();
158 IntPtr[] typeInstantiationContext2 = RuntimeTypeHandle.CopyRuntimeTypeHandles(typeInstantiationContext, out
length);
160 IntPtr[] methodInstantiationContext2 = RuntimeTypeHandle.CopyRuntimeTypeHandles(methodInstantiationContext, out
length2);
162 IRuntimeMethodInfo method = new RuntimeMethodInfoStub(runtimeMethodHandleInternal, RuntimeMethodHandle.GetLoaderAllocator(runtimeMethodHandleInternal));
163 GC.KeepAlive(typeInstantiationContext);
164 GC.KeepAlive(methodInstantiationContext);
165 return new RuntimeMethodHandle(method);
166 }
RuntimeModule GetRuntimeModule()
static unsafe RuntimeMethodHandleInternal ResolveMethodHandleInternal(RuntimeModule module, int methodToken, IntPtr[] typeInstantiationContext, int typeInstCount, IntPtr[] methodInstantiationContext, int methodInstCount)