Is there a way to use linq in a C # application .net framework 2?

I need to use linq in a Windows C # form application running with .Net Framework 2, not 3.5. I know this could be some kind of stupidity. but I need this for some special reason. Can I import only linq libraries into my project? or is there no way other than using 3.5?

+3
source share
3 answers

Yes, to the point. Take a look at LINQBridge .

+7
source

There are several blogs that describe this process (yes, this can be done):

LINQ support on .NET 2.0

+3
source

The core of the 3.5 framework is the same as the core of the 2.0 framework. For example, you can create a solution with vs 2008, where your external project or user interface will be compiled with the 2.0 framework, as well as the dll core project with the 3.5 framework, which widely uses linq. All of this can be deployed in 2.0 without any problems.

0
source

Source: https://habr.com/ru/post/1768221/


All Articles