We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this questionI'm using a .Net 2 project and am missing LINQ.
I cannot use 3rd party tools or try using the System.Core hack to get it to work so I开发者_开发百科 was thinking that if the LINQ source code is available I could just copy the extension methods and create a class in my project.
I mainly need it for Array, List type querying etc
Thanks
You can use mono's LINQ source code. It is highly compatible with .NET's LINQ.
Update: Even better, original .NET source now is available.
The Microsoft implementation of LINQ source is not available for you to use. LINQ will not work with .NET 2.0. You will need at least .NET 3.5.
You might want to try LINQBridge.
LINQ is not merely classes, it is upgraded compiler as well to understand Anonymous classes, methods, lambda expressions etc. You can use LINQ in 2.0 as well. Create seperate project, set framework 3.5. And it will work in 2.0 projects. Only thing u will miss is intellisense in VS 2005.
Old Question, but interesting.
Source code of linq (part of .Net framework) is now available Reference Source
Also, in github github-Microsoft NET Reference Source
精彩评论