2011年6月29日
摘要: 8.Error: Failed to connect to server "192.168.1.100:2060": [10061] Connection refusedIIS关闭Web服务器承受不了压力,拒绝服务,降低TCPTimeWaitDelay时间和增加MaxUserPort TCP连接使用的最大端口数量可以提高系统的数据吞吐率增加MaxUserPort TCP连接使用的最大端口数量1.打开注册表编辑器,如 Regedit.exe 或 Regedt32.exe。2.导航到:HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Pa 阅读全文
posted @ 2011-06-29 17:49 Ilin 阅读(914) 评论(0) 推荐(0) 编辑
摘要: 演变过程:在 2.0 之前的 C# 版本中,声明委托的唯一方法是使用命名方法。C# 2.0 引入了匿名方法,而在 C# 3.0 及更高版本中,Lambda 表达式取代了匿名方法,作为编写内联代码的首选方式。概念:内联在方法内部的委托对象。(A方法内部调用一个B方法时,可以省去声明另外一个方法B,直接用委托匿名运用)public void a() { int name = b(); } public static int b() {int c = 5 + 1; }可以用匿名方法: public void a() { int name = delegate() { int c = 5 + 1; } 阅读全文
posted @ 2011-06-29 15:15 Ilin 阅读(348) 评论(1) 推荐(0) 编辑