摘要: 当我们引用第三方的DLL、或者Visual Studio自己的库的时候,或许会发现这样的一个情况,如果这个类型有一个XX的方法就好了。这时候我们可以用到扩展方法,是我们的代码更加灵活和高效。 这里我举例一下,比如在控制台程序(Console Application)我们想打印一个List内所有的成员通常会怎么写么? 最通常的方法: List StringList = new List();fo... 阅读全文
posted @ 2013-10-31 22:53 PegasusZero 阅读(689) 评论(0) 推荐(1)
摘要: iisreset -- 对象是整个IIS服务器,这个操作会先停止万维网的服务(World Wide Web Publishing Service)然后在重启此服务,因此所有的网站都会先停止服务然后在重新开始服务。 As pointed out, iisreset will stop and start the World Wide Web Publishing Service. This, of... 阅读全文
posted @ 2013-10-31 00:44 PegasusZero 阅读(305) 评论(0) 推荐(1)