📌  相关文章
📜  从 icollection 中获取项目 - C# 代码示例

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

代码示例1
var foo = myICollection.OfType().FirstOrDefault();
// or use a query
var bar = (from x in myICollection.OfType() where x.SomeProperty == someValue select x)
    .FirstOrDefault();