📜  linq 从 id 查找对象 - C# 代码示例

📅  最后修改于: 2022-03-11 14:49:16.260000             🧑  作者: Mango

代码示例1
MyObject myObject = collectionMyObject.FirstOrDefault(o => o.Items != null && o.Items.Any(io => io.Id == 2));