C# - Java的互操作 [英] C# - Java interoperation

查看:337
本文介绍了C# - Java的互操作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你能不能给我做的C#代码和Java代码互操作一些指针?
让我们来定义的互操作是简单的东西:允许(在Java代码中)在C#中定义的类的instantiantion和方法调用,也有可能,周围的其他方法,以及

Can you give me some pointers on making C# code and Java code interoperate? Let's define the interoperation as something simple: allow (from Java code) the instantiantion and method calling of a class defined in C#, and, possibly, the other way around as well.

这甚至可能的本地的? (即,如果没有一些代理/骨架接口机构)

Is this even possible natively? (i.e. without some proxy/skeleton interface mechanism)

最后,可以使用什么代理机制? (即通过语言都支持领域)

And finally, what proxy mechanisms can be used? (i.e. are supported by both language realms)

推荐答案

我用的 IKVM 成功地做到这一点。

I've used IKVM to accomplish this successfully.

这篇关于C# - Java的互操作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆