随笔分类 - 00.Net
摘要:http://haacked.com/archive/2008/03/13/url-routing-debugger.aspx[代码]库文件:asp.net_mvc_routing_debugger.zip
阅读全文
摘要:1.Linq2.Extension Methods3.Lambda Methods string [] names=new string[]{"bill","Jane","Bob"}; IEnumberablestring bs=name.Wherestring(deletegate(string s){ return s.StartWith("b"); });等同于: IEnumberablestring bs=names.Where( n = n.StartWith("b") );4.Generic Type Inference5.Automatic properties6.
阅读全文
摘要:var customers = BuildCustomers();var results = from c in customers from o in c.Orders where c.FirstName.Length >=5 && o.Product == "Milk" group by c into avg select new { avg.Key.Firs...
阅读全文
摘要:火狐浏览器功能强大,安全性高,但是它的启动速度比较慢,打开网页的速度也比较一般,但是我们可以通过简单的设置让它成为最优秀的浏览器,具体操作如下:在火狐地址栏中输入: about:config进入配置1.右键点击FireFox的快捷方式,在“属性”—“快捷方式”—“目标”,加上参数“ /Prefetch:1”。即:"C:Program FilesMozilla Firefox irefox.exe" /Prefetch:1”(注意:“/”前有空格)2.让火狐在最小化时自动释放内存:右击鼠标-新建-布尔(boolean)项,输入:config.trim_on_minimize,并设置为true。做
阅读全文
摘要:finally语句块中,i将变成3,但res=2.结论:在return之后,再执行finally语句.
阅读全文
摘要:AutoIT 3主页.http://www.autoitscript.com/autoit3/
阅读全文
该文被密码保护。
摘要:http://msdn.microsoft.com/zh-cn/library/h6bb9cz9(VS.80).aspx
阅读全文
摘要:XPath 是一门在 XML 文档中查找信息的语言。XPath 用于在 XML 文档中通过元素和属性进行导航。什么是 XPath?XPath 使用路径表达式在 XML 文档中进行导航XPath 包含一个标准函数库XPath 是 XSLT 中的主要元素XPath 是一个 W3C 标准XPath 路径表达式XPath 使用路径表达式来选取 XML 文档中的节点或者节点集。这些路径表达式和我们在常规的电...
阅读全文
摘要:using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading;namespace SingletonDemo{ public sealed class Singleton { private Singleton() { } private static...
阅读全文
摘要:部分摘自:http://student.csdn.net/space.php?uid=42425&do=blog&id=8663
阅读全文
摘要:用sql profiler 监视运行的sql语句如下:
阅读全文
摘要:来源:http://weblogs.asp.net/scottgu/archive/2007/05/19/using-linq-to-sql-part-1.aspxOver the last few months I wrote a series of blog posts that covered some ofthe new language features that are coming ...
阅读全文
摘要:static void Main() { string strcon = global::TestLinqToSQL.Properties.Settings.Default.testConnectionString; SqlConnection conn = new SqlConnection(strcon); ...
阅读全文