我想使用Linq查询一个二维数组,但是出现了错误:
找不到' SimpleGame.ILandscape [,] '类型的源类型的查询模式实现。 'Select'未找到。 您是否缺少对'System.Core.dll'的引用或对'System.Linq'的使用指令?
以下是代码:
var doors = from landscape in this.map select landscape;
我已经确认我包含了引用 System.Core
并使用了 System.Linq
。
有人能给出一些可能的原因吗?