Union、Intersect 和 except 的非 LINQ 实现

发布于 2024-09-27 01:00:22 字数 262 浏览 0 评论 0原文

LINQ to object 具有非常有用的 UnionIntersectExcept 方法。遗憾的是,我正在为一个客户工作,他们强制要求使用 .NET 2.0,因此 LINQ 不是一个选择。我查看了反射的代码,它根本没有很好地反转。

是否有 .NET 2.0 库或 UnionIntersectExcept 的简单实现?

LINQ to objects has the incredibly useful Union, Intersect, and Except methods. Sadly, there's a client I'm doing work for and they are mandating .NET 2.0 so LINQ is not an option. I looked through the reflected code and it didn't reverse well at all.

Is there a .NET 2.0 library or easy implementation of Union, Intersect, and Except?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

有木有妳兜一样 2024-10-04 01:00:22

有什么理由不使用 LINQBridge?获得 LINQ to Objects 的优点,同时仍以 .NET 2.0 为目标:)

Any reason not to use LINQBridge? Get your LINQ to Objects goodness while still targeting .NET 2.0 :)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文