摘要: 估计很多同学都见过typeof这个方法,但是实际中很少使用吧。 typeof方法用于获取类型,返回一个Type对象,根据这个Type对象,我们可以知道这个类型的方法,参数,成员等信息都可以得到,也许是老夫层次太低,不知道这有什么用,要看方法直接F12(vs)就能看到。foreach (Control c in Controls) { if (c.GetType() == typeof(TextBox)) { c.Text = "Hello"; ... 阅读全文
posted @ 2012-08-21 16:09 UncleNull 阅读(419) 评论(0) 推荐(0) 编辑
摘要: 1、域名查询 接口采用HTTP,POST,GET协议: 调用URL:http://panda.www.net.cn/cgi-bin/check.cgi 参数名称:area_domain 值为标准域名,例:hichina.com 调用举例: http://panda.www.net.cn/cgi-bin/check.cgi?area_domain=qxue8.com 返回XML: <?xml version="1.0" encoding="gb2312"?> <property> <returncode>200</ 阅读全文
posted @ 2012-08-21 00:40 UncleNull 阅读(3774) 评论(1) 推荐(1) 编辑