在.net framework 2.0中使用Linq

本文关键字:Linq net framework | 更新日期: 2023-09-27 18:08:19

我在。net framework 4.0, visual studio 2010中做了一个应用程序,但由于某种原因,我将框架从4.0更改为2.0,但现在我得到的错误

The type or namespace name 'Linq' does not exist in the namespace 'System' (are you 
missing an assembly reference?) 

LINQ在这个项目中使用得非常多,现在我想知道有什么方法可以在。net 2.0中使用LINQ。需要help.Thanks。

在.net framework 2.0中使用Linq

dotnet 2.0不支持Linq

您可以使用LinqBridge,它提供了Linq to Objects操作符的另一种实现。(注意:对于Linq to Objects, 只能工作,对于Linq to XML或Linq to XML, 不能…)