0
假設我有以下obejct:如何做到這一點的LINQ
class title
{
string Title;
int id;
// other information about title
}
class person
{
string Name;
List<title> titles;
// other information about person
}
List<Person> FindPersonsBasedOnTitle(List<Title> titles)
{
List<Person> p=getPersons();
// How to search P for all persons that have at least one title matched in titles?
}
我如何才能找到誰在輸入標題至少一個標題這種方法的人的名單?