Is it possible to call a DynamicMethod from MethodBuilder/ConstructorBuilder
问题 I have an ILGenerator created from ConstructorBuilder, and I want to create and call a DynamicMethod with it but I get an InvalidOperationException - Unable to import a global method or field from a different module. var constructorBuilder = typeBuilder.DefineConstructor(...); var ilGenFromCtor = constructorBuilder.GetILGenerator(); . . . var dynamicMethod = new DynamicMethod("Name", ReturnType, Type.EmptyTypes, true); var ilGenFromDynamicMethod = dynamicMethod.GetILGenerator(); . . var