查看代码是,引用代表什么含义??
例如:
using system;
using systenm.collections.generic;
using system.comoponentmodel;
using system.data;
using systen.drawing;
using system.linq;
using system.text;
using system.windows.forms;
在代码的最开头处!!!!
...全文
43423打赏收藏
初学C#求帮助!!!
查看代码是,引用代表什么含义?? 例如: using system; using systenm.collections.generic; using system.comoponentmodel; using system.data; using systen.drawing; using system.linq; using system.text; using system.windows.forms; 在代码的最开头处!!!!
using还有两种用法
1、using a=system.text;给命名空间最别名
2、using语句,定义一个范围,在范围结束时处理对象。
如:
using (Class1 cls1 = new Class1(), cls2 = new Class1())
{
// the code using cls1, cls2
} // call the Dispose on cls1 and cls2