开发者

LINQ Source Code Available [closed]

开发者 https://www.devze.com 2023-02-11 02:45 出处:网络
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.

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 question

I'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

0

精彩评论

暂无评论...
验证码 换一张
取 消