System.Collections.Generic.List<int> arr = new System.Collections.Generic.List<int> { 5, 1, 9, 3, 4, 0, 8 };
var m = from item in arr
select item;
foreach (var item in m)
{
Response.Write(item.ToString() + "<br>");
}
LINQ 查询List
最新推荐文章于 2024-07-09 20:53:22 发布