Blog Reader RSS LoveCherry 技术无极限 GEO MVP MS Project开源技术
摘要: 静态构造函数用于初始化任何静态数据,或用于执行仅需执行一次的特定操作。在创建第一个实例或引用任何静态成员之前,将自动调用静态构造函数。 1class SimpleClass 2{ 3 // Static constructor 4 static SimpleClass() 5 { 6 // 7 } 8} 静态构造函数具有以下特点: 静态构... 阅读全文
posted @ 2008-05-19 16:33 大宋提刑官 阅读(348) 评论(2) 推荐(0) 编辑
摘要: 链接:http://www.csharphelp.com/archives4/archive693.html 1GetUrls urls = new GetUrls(); urls.RetrieveUrls("http://www.microsoft.com"); 2 3 4The class is listed below. Have fun! 5//required names... 阅读全文
posted @ 2008-05-19 14:15 大宋提刑官 阅读(313) 评论(1) 推荐(0) 编辑
摘要: 链接:http://www.csharphelp.com/archives4/archive694.html From Decimal to Binary... 1using System; 2 3class Program{ 4 5 static void Main(string[] args){ 6 7 try{ 8 9 int i = (i... 阅读全文
posted @ 2008-05-19 13:10 大宋提刑官 阅读(396) 评论(0) 推荐(0) 编辑