I want to use Linq to query a 2D array but I get an error:
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'?
Code is following:
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?