* 子句
* 1、以from语句开始,以select、group结束,中间可以包含多个where,let,join,orderby,group子句,也可以有from
* from 指定查询操作的数据源或范围变量
* select 指定查询结果的类型和表现形式
* where 筛选元素的逻辑条件
* let 引入用来临时保存查询表达式中的子表达式结构的范围变量
* order by 对查询结果进行排序,
* group 对查询结果进行分组
* into 提供一个临时标识符,join、group、select 可以通过该标识符引用查询操作中的中间结果
* join 连接多个用于查询操作的数据源
*
*/
/* Linq
* 语言集查询,允许编写C#或visua basic代码以查询数据库的方式操作内存数据
*
*/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AboutLinq
{
class Program
{
public static bool IsEven(int i)
{
return i % 2 == 0 ? true : false;
}
static void Main(string[] args)
{
int[] Array = { 1, 3, 5, 2, 7, 9, 14, 46, 2, 65, 87, 43, 1, 45, 75, 2, 4 };