Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

C# using System.Linq error

Tags:

c#

linq

Why might "using System.Linq" cause the following error?

The type or namespace name 'Linq' does not exist in the namespace 'System'

like image 464
jacknad Avatar asked May 24 '11 12:05

jacknad


People also ask

What C is used for?

C programming language is a machine-independent programming language that is mainly used to create many types of applications and operating systems such as Windows, and other complicated programs such as the Oracle database, Git, Python interpreter, and games and is considered a programming foundation in the process of ...

Is C language easy?

C is a general-purpose language that most programmers learn before moving on to more complex languages. From Unix and Windows to Tic Tac Toe and Photoshop, several of the most commonly used applications today have been built on C. It is easy to learn because: A simple syntax with only 32 keywords.

Is C programming hard?

C is more difficult to learn than JavaScript, but it's a valuable skill to have because most programming languages are actually implemented in C. This is because C is a “machine-level” language. So learning it will teach you how a computer works and will actually make learning new languages in the future easier.

What is full name of C?

In the real sense it has no meaning or full form. It was developed by Dennis Ritchie and Ken Thompson at AT&T bell Lab. First, they used to call it as B language then later they made some improvement into it and renamed it as C and its superscript as C++ which was invented by Dr.


2 Answers

Reference System.Core

And then there are others that merge this namespace too - but that's the primary one on .Net 3.5 and above.

If you're project is currently .Net 2.0, say, and you're using the right version of VS (2005 and above) - you can simply right-click on the proejct properties; and change the 'Target Framework Version' to 3.5. System.Core will then become available.

If you don't see that in the options - then I guess you're using an older VS

like image 120
Andras Zoltan Avatar answered Oct 08 '22 09:10

Andras Zoltan


The most probable reason is that you are using wrong version of .NET Framework.

like image 23
Ladislav Mrnka Avatar answered Oct 08 '22 10:10

Ladislav Mrnka