1. DataTable读取列表 DataSet ds = new DataSet();// 省略ds的Fill代码DataTable products = ds.Tables["Product"];IEnumerable<DataRow> rows = from p in products.AsE Read More
posted @ 2016-11-22 16:31 jeffery1010 Views(278) Comments(0) Diggs(0) Edit
"Lambda表达式"是一个匿名函数,它可以包含表达式和语句,并且可用于创建委托或表达式树类型。 Lambda 运算符: => 该运算符读为"goes to"。 该 Lambda 运算符的左边是输入参数(如果有),右边包含表达式或语句块。 例如: Lambda 表达式 x => x * x 读作"x Read More
posted @ 2016-11-22 15:14 jeffery1010 Views(135) Comments(0) Diggs(0) Edit