Is it possible to invoke internal method from a dynamic method in .NET?
问题 I am trying to invoke an internal method from a dynamically generated one. The il code is simple: ldarg_0, callvirt, ret. Executing the method fails with TypeLoadException saying it cannot load the type on which the internal method is defined. When I think of it, this seems logical, because the dynamic method host assembly is not a friend of the method's declaring type assembly. However, I have expected the dynamic method still to work, just like Delegate.CreateDelegate works. After all, I