.NET中的命名空间问题 [英] Namespace Issue in .net

查看:96
本文介绍了.NET中的命名空间问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用java.io和java.util.zip将其添加到Windows应用程序中.它显示一个错误找不到命名空间...我该怎么办...如何解决此问题.

解决方案

使用java.io和使用java.util.zip
它们不是您要在.NET应用程序中添加的与Microsoft .NET Framework相关的类.它们是JAVA类,一旦引用了包含这些类的程序集,便可以将其添加到JAVA项目中.

.NET&的运行时Java是不同的,因此您不能直接引用交叉程序集.


最后,我找到了答案.

只需添加引用"VJSLIB".然后是java.io;并可以使用java.util.zip.


 最后 找到  answer .

只是 添加   然后  java  .io;   java . util . zip   工作.


i add using java.io and using java.util.zip into my Windows application. Its shows an error "Namespace could not found...What can i do...How to solve this issue.

解决方案

using java.io and using java.util.zip
They are not Microsoft''s .NET Framework related classes that you are trying to add in your .NET application. They are JAVA classes and can be added in the JAVA project once the assembly containing those classes are referenced.

Runtime for both .NET & Java are different and so you cannot reference cross assemblies directly.


Finally i find that answer.

Just add the reference "VJSLIB". Then java.io; and java.util.zip will work.


Finally i find that answer.

Just add the reference "VJSLIB". Then java.io; and java.util.zip will work.


这篇关于.NET中的命名空间问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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