Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
2 つのリストに共通の要素が必要な場合は、intersect 関数を使用できます。
var listC = listA.Intersect(listB);
しかし、これはオブジェクトを比較します。リストに Persons 型のオブジェクトがあり、たとえば同じ名前の人物を取得したい場合、どうすればそれを行うことができますか? name プロパティの条件はどこで設定しますか?
ありがとう。