Fork me on GitHub
摘要: class Program { static void Main(string[] args) { //扩展方法 语法糖 谨慎使用 int[] ints = { 10, 45, 15, 39, 21, 26 }; ... 阅读全文
posted @ 2015-06-08 16:15 乔闻 阅读(378) 评论(0) 推荐(0) 编辑
摘要: //Linq:language Intergarted Query 语言整合查询 //select * from tb_name //条件必须实现IEnumerable接口 //Linq to SQL,Linq to Xml ,Lin... 阅读全文
posted @ 2015-06-08 15:05 乔闻 阅读(316) 评论(0) 推荐(0) 编辑
摘要: static void Main(string[] args) { Lamda(); Console.ReadLine(); } delegate int del(int i); private st... 阅读全文
posted @ 2015-06-08 11:27 乔闻 阅读(148) 评论(0) 推荐(0) 编辑
摘要: 所有用到委托的地方都可以用到匿名方法主线程static void Main(string[] args) { StartTread(); Console.ReadLine(); } private static v... 阅读全文
posted @ 2015-06-08 11:12 乔闻 阅读(160) 评论(0) 推荐(0) 编辑