本文介绍了使用命名空间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
之间有什么区别?
和
using namespace System;
是同样的事情吗?
感谢
解决方案
第一个不编译。也许你的意思是:
#using< System.dll>
using namespace System;
#using指令允许您在不经过框架和引用项目设置的情况下引用程序集。 / p>
what is the difference between
using System;
and
using namespace System;
is it the same thing?
thanks
解决方案
Yes, there's a difference. The first one doesn't compile. Maybe you meant this:
#using <System.dll>
using namespace System;
The #using directive allows you to reference an assembly without going through the Framework and References project setting.
这篇关于使用命名空间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!