.NET 4.0中的System.Linq在哪里? [英] Where is System.Linq in .NET 4.0?

查看:101
本文介绍了.NET 4.0中的System.Linq在哪里?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将asp.net应用程序迁移到了4.0.现在,我收到一个错误找不到类型或名称空间名称'IQueryable'".对System.Linq的引用无效,我在引用列表中找不到它. System.Linq去哪了?

I migrated an asp.net app to 4.0. Now I am getting an error "The type or namespace name 'IQueryable' could not be found". The reference to System.Linq is invalid and I can't find it in the reference list. Where did System.Linq go?

推荐答案

确保在项目中引用System.Core.dll. IQueryable<T>类型在该程序集中定义(就像在.NET 3.5中一样).

Make sure you are referencing System.Core.dll in your project. The IQueryable<T> type is defined in that assembly (just as it was in .NET 3.5).

这篇关于.NET 4.0中的System.Linq在哪里?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆