C#语法 大家看:namespace AsterDnet{ using System; ...........这样也可以啊?using不是要写在所有代码之前吗? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 可以,using只要是写在类名之前就可以 你要是想写在命名空间内的话,得这样写using (System.Windows.Forms.Label lb=new Label ()) 当然可以,using 有两个作用,一是引用类库,二是象楼上那样用,using内的代码执行完以后释放资源。 去看看1.0的代码, 全写在namespace 里namespace x{using System.WinForms;} using alias = type|namespace;照抄一下msdn:)) byhum和zhaodayong 是都是lz吧?http://community.csdn.net/Expert/topic/4819/4819731.xml?temp=.4761621http://community.csdn.net/Expert/topic/4814/4814920.xml?temp=2.474612E-02http://community.csdn.net/Expert/topic/4814/4814915.xml?temp=.6950342 c#接收邮件问题 Setup Factory 请教 TabControl 在切换页面的时候为何闪烁的厉害! 程序集问题 请高手进来指教 在C#中,如何加入datacombo等ActiveX控件,在线等..... 怎样找到应用程序里面的文本框控件的句柄 有没有不歧视乙肝,招聘带菌程序员的软件公司?(散分) 如何创建带图形界面的类库 数据库连接问题 关于C#中“特性”的问题? 进度条方面的问题 两个DataTable 合并如何去掉相同行?
using (System.Windows.Forms.Label lb=new Label ())
{
using System.WinForms;
}
照抄一下msdn:))
http://community.csdn.net/Expert/topic/4819/4819731.xml?temp=.4761621
http://community.csdn.net/Expert/topic/4814/4814920.xml?temp=2.474612E-02
http://community.csdn.net/Expert/topic/4814/4814915.xml?temp=.6950342