相关疑难解决方法(0)

LINQ加入2列表<T>

前言:我不明白这是做什么的:

o => o.ID, i => i.ID, (o, id) => o
Run Code Online (Sandbox Code Playgroud)

所以对我很轻松.:-)


我有2个列表需要加入:

// list1 contains ALL contacts for a customer.
// Each item has a unique ID.
// There are no duplicates.
ContactCollection list1 = myCustomer.GetContacts();

// list2 contains the customer contacts (in list1) relevant to a REPORT
// the items in this list may have properties that differ from those in list1.
/*****/// e.g.:
/*****/        bool SelectedForNotification; 
/*****///  may be different.
ContactCollection list2 = myReport.GetContacts();
Run Code Online (Sandbox Code Playgroud)

我需要创建第三个ContactCollection,其中包含list1项目属性的所有联系人 …

c# linq

27
推荐指数
2
解决办法
9万
查看次数

标签 统计

c# ×1

linq ×1