public void TestGetRuntimeMethodForVirtual() { Type type = typeof(StubHelperTests); MethodInfo methodInfo = type.GetMethod("TestGetRuntimeMethodForVirtual"); Assert.AreEqual(methodInfo, StubHelper.GetRuntimeMethodForVirtual(type, methodInfo)); }
public void Rewrite(RuntimeMethodHandle handle, RuntimeTypeHandle declaringType) { MethodInfo mi; int i; IntPtr ip; Type type; mi = MethodBase.GetMethodFromHandle(handle, declaringType) as MethodInfo; type = mi.GetType(); mi = StubHelper.GetRuntimeMethodForVirtual(type, mi); }