Reputation: 113
I have just begun working on a asp.net 4.5 (C#) webpage. I have just beginning to learn LINQ. To make sure I am doing everything right I pasted this code (from a Microsoft tutorial into a code file) :
int[] numbers = new int[7] { 0, 1, 2, 3, 4, 5, 6 };
var numQuery =
from num in numbers
where (num % 2) == 0
select num;
However everything is not right because it says System.LINQ does not exist and intelisense gives me this error when I hover over the keyword from : Feature 'query expression' cannot be used because it is not part of the ISO-2 language specification. I feel like I am missing a reference.
Upvotes: 0
Views: 690
Reputation: 12458
Have a read through this
To enable basic LINQ functionality
Upvotes: 1