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.
我想知道为什么List<T>.Find在 C# 中创建 Metro 应用程序时不可用。它仍在 .NET Framework 4.5(Windows 窗体、WPF)中,但不在 Metro 风格的应用程序中。是否有替代方法或者只是没有一种查找方法?
List<T>.Find
它是 MSFT 做出的选择。只需使用 Linq 的FirstOrDefault或SingleOrDefault.
FirstOrDefault
SingleOrDefault
听起来他们肯定做了很多清理工作......