摘要: let语句用于在Linq表达式中存储子表达式的计算结果。可以在后续的where子句中使用。例子:创建控制台应用程序Demo_letclass Program { static void Main(string[] args) { // 填充数据 List<PersonInfo> pList = new List<PersonInfo>() { new PersonInfo{ Name="周瑜", Country="吴", Official="都督", Salary=... 阅读全文
posted @ 2012-02-27 07:46 金丝猴 阅读(515) 评论(0) 推荐(0) 编辑