私は IList を持っています--->
IList<Test> list;
リストには、以下に示すクラス Test のオブジェクトが含まれています。
list.Add(new Test{ id = 1, name = "abc" })
list.Add(new Test{ id = 2, name = "xyz" })
list.Add(new Test{ id = 3, name = "nmo" })
クラス Test は --->
Class Test
{
int id;
string name;
}
ここで、(リストのすべての要素の)すべての名前フィールドを選択したい--->
IList<string> nameList = ???
私はこれで立ち往生しました(LINQ c#に関する知識の欠如)