Ramy
Ramy

Reputation: 31

Linq on visual studio 2005

i was wondering how to install linq on visual studio 2005 without upgrade the .net framewok version , Thanks

Upvotes: 3

Views: 3895

Answers (4)

Ian
Ian

Reputation: 34489

As commented, it's part of the C#3.0 so VS2005 doesn't really support it.

If you look LINQ in VS2005 there is a method of getting it to work, but it doesn't support anonymous types taking away some of the power of LINQ.

Upvotes: 0

Wonko the Sane
Wonko the Sane

Reputation: 10813

You don't.

"Language-Integrated Query (LINQ) is a set of features in Visual Studio 2008 that extends powerful query capabilities to the language syntax of C# and Visual Basic. LINQ introduces standard, easily-learned patterns for querying and updating data, and the technology can be extended to support potentially any kind of data store. Visual Studio 2008 includes LINQ provider assemblies that enable the use of LINQ with .NET Framework collections, SQL Server databases, ADO.NET Datasets, and XML documents."
Source - Microsoft

Upvotes: 1

Chris
Chris

Reputation: 2895

Unless I'm mistaken, Visual Studio 2005 supports up to .Net 3.0, whereas LINQ requires 3.5, so therefore it can't be done.

Upvotes: 0

LINQ is part of C#3.0. It is not available in C#2.0 which is the only version VS 2005 supports. So you won't be able to use LINQ without installing at least VS 2008.

Upvotes: 6

Related Questions