随笔 - 566  文章 - 2  评论 - 77  阅读 - 117万

随笔分类 -  linq

linq 使用first筛选出第一条数据
摘要:View Code staticvoidMain(string[]args){List<Person>personL=newList<Person>();personL.Add(newPerson("wtq","男","13616009873",23));personL.Add(newPerson("wta","女","13616009871",24));personL.Add(newPerson("wtb","男&quo 阅读全文
posted @ 2011-07-30 16:54 wtq 阅读(7855) 评论(0) 推荐(0) 编辑
LInq 使用where过滤,匿名类型来查找想要的数据。
摘要:View Code staticvoidMain(string[]args){List<Person>personL=newList<Person>();personL.Add(newPerson("wtq","男","13616009873",23));personL.Add(newPerson("wta","女","13616009871",24));personL.Add(newPerson("wtb","男&quo 阅读全文
posted @ 2011-07-30 16:15 wtq 阅读(870) 评论(0) 推荐(1) 编辑

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

点击右上角即可分享
微信分享提示