I want to use Linq to query a 2D array but visual studio c# 2010 express gives the message: Could not find an implementation of the query pattern for source type 'SimpleGame.ILandscape[,]'. 'Select' not found. Are you missing a reference to 'System.Core.dll' or a using directive for 'System.Linq'?
var doors = from landscape in this.map select landscape;
I've checked that I included the reference System.Core and using System.Linq.
Could anyone give some possible causes?
Thanks in advance.
Some additional information: The code is in a class in a class library, which is part of a solution having three projects.