我可以在F#或java中使用的C#应用​​程序中使用DLL吗?如果可能比怎么样? [英] Can I use DLL in C# application that is made in F# or java? If it is possible than how?

查看:79
本文介绍了我可以在F#或java中使用的C#应用​​程序中使用DLL吗?如果可能比怎么样?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个用f#构建的dll或用于计算器应用程序的java,我想在C#应用程序中使用它。

如果是,那么这可能是什么?



我尝试了什么:



我只是想知道是否这可能比如何引用和使用该dll或jar文件。

I have one dll that is build in f# or java for calculator application and I want to use it in C# application.
That is possible if yes than how?

What I have tried:

I just want to know if this possible than how How to reference and use that dll or jar file.

推荐答案

您无法直接访问的JAR文件 - 它们是Java安装文件,通常是在Java Runtime Environment下运行,以向您的系统添加应用程序。 C#文件无法直接使用这些文件。



F#是一种.NET语言,因此您可以直接使用它的程序集,就好像它们是用C#或VB编写的一样。 br />


但是......你真的认为使用你在互联网上找到的代码可以让你在这项任务中取得好成绩吗?特别是如果它不是你所知道的语言?

如果你自己编写了自己的程序,你会给自己带来更多好处 - 而且你也会学到很多东西,这就是毕竟是家庭作业。
JAR files you can't access directly - they are Java installation files and would normally be run under the Java Runtime Environment to add an application to your system. C# files can't use these directly.

F# is a .NET language, so you can use it's assemblies directly as if they were written in C# or VB.

But ... do you really think that using code you found on the internet is going to get you a good mark in this assignment? Especially if it isn't in a language you know?
You would do yourself a lot more favours if you wrote your own program - and you would learn a lot doing it too, which is the point of homework assignments, after all.


这篇关于我可以在F#或java中使用的C#应用​​程序中使用DLL吗?如果可能比怎么样?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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