using namespace

霸气de小男生 提交于 2019-12-07 04:18:27

问题


what is the difference between

using System;     

and

using namespace System;    

is it the same thing?

thanks


回答1:


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.



来源:https://stackoverflow.com/questions/4906540/using-namespace

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!