![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C#-Linq
文章平均质量分 78
Csdbfans
我不知道我能不能做你要求我做的,但我会努力试着按你的要求完成;我也不知道我的潜力到底有多大,但我深知能力是伴随学习而提高;我同样不知我的未来到底能到达什么高度,但我知道我现在不去努力的话,未来只能口头上来瞎吹,永远把握不住它前进的方向。
--------------------------------
展开
-
C#3.0 LINQ 查询语法
(我注:开始学习Linq,故在学习基础知识的同时,也共享一些前辈们的好文章给大家一起分享,让我们更快学习到需要掌握的技能)首先来看一个很简单的LINQ查询例子,查询一个int 数组中小于5的数字,并按照大小顺序排列:class Program{ static void Main(string[] args) { int[] arr = new int[] { 8, 5, 89, 3, 56, 4, 1, 58 }; var m = from转载 2010-10-16 12:22:00 · 722 阅读 · 0 评论 -
Linq学习笔记(1.1)——where
(我注:下文是一个linq关键字where的一些用法,源代码里面都有详细的注释说明,大家有兴趣的话,可以试下在新创建的WebForm项目的Default.aspx.cs文件里面粘贴如下代码,看看是不是出来结果的那个图)#region usingusing System;using System.Data;using System.Configuration;using System.Linq;using System.Web;using System.Web.Security;u转载 2010-10-16 13:28:00 · 756 阅读 · 0 评论 -
Linq学习笔记(1.2)——select
using#region usingusing System;using System.Data;using System.Configuration;using System.Linq;using System.Web;using System.Web.Security;using System.Web.UI;using System.Text;using System.Web.UI.WebControls;using System.Web.UI.WebContro转载 2010-10-16 13:34:00 · 810 阅读 · 0 评论 -
Linq学习笔记(1.3)——Take、Skip
using System;using System.Data;using System.Configuration;using System.Linq;using System.Web;using System.Web.Security;using System.Web.UI;using System.Text;using System.Web.UI.WebControls;using System.Web.UI.WebControls.WebParts;using转载 2010-10-19 21:21:00 · 3000 阅读 · 0 评论 -
Linq学习笔记(1.4)——orderby、Reverse()
<br />using System;using System.Data;using System.Configuration;using System.Linq;using System.Web;using System.Web.Security;using System.Web.UI;using System.Text;using System.Web.UI.WebControls;using System.Web.UI.WebControls.WebParts;转载 2010-10-23 00:40:00 · 1041 阅读 · 0 评论 -
Linq学习笔记(1.5)——group、Distinct、Union、Concat、Intersect、Except
<br />using System;using System.Data;using System.Configuration;using System.Linq;using System.Web;using System.Web.Security;using System.Web.UI;using System.Text;using System.Web.UI.WebControls;using System.Web.UI.WebControls.WebParts;转载 2010-10-24 21:49:00 · 785 阅读 · 0 评论 -
Linq学习笔记(1.6)——ToArray、ToList、ToDictionary、OfType
using System;using System.Data;using System.Configuration;using System.Linq;using System.Web;using System.Web.Security;using System.Web.UI;using System.Text;using System.Web.UI.WebControls;using System.Web.UI.WebControls.WebParts;using转载 2010-10-26 22:10:00 · 1067 阅读 · 0 评论 -
Linq学习笔记(1.7)——First、ElementAt、Any、all
<br />using System;using System.Data;using System.Configuration;using System.Linq;using System.Web;using System.Web.Security;using System.Web.UI;using System.Text;using System.Web.UI.WebControls;using System.Web.UI.WebControls.WebParts;转载 2010-10-27 22:05:00 · 687 阅读 · 0 评论 -
Linq学习笔记(1.8)——Count、Sum、Min、Max、Average
<br />using System;using System.Data;using System.Configuration;using System.Linq;using System.Web;using System.Web.Security;using System.Web.UI;using System.Text;using System.Web.UI.WebControls;using System.Web.UI.WebControls.WebParts;转载 2010-10-28 21:04:00 · 862 阅读 · 0 评论