的名单我有一个IList --->自IList选择所有字段,包含对象
IList<Test> list;
列表中包含了一流的试验对象,如下:
list.Add(new Test{ id = 1, name = "abc" })
list.Add(new Test{ id = 2, name = "xyz" })
list.Add(new Test{ id = 3, name = "nmo" })
其中类测试是--->
Class Test
{
int id;
string name;
}
现在我想要select所有名称字段我被卡在(缺乏对LINQ C#的知识)
其工作thnx! – 2013-05-03 07:43:59