.NET 4.0中的System.Linq在哪里?

编程入门 行业动态 更新时间:2024-10-25 14:26:12
本文介绍了.NET 4.0中的System.Linq在哪里?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

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

I migrated an asp 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在哪里?

本文发布于:2023-11-12 04:42:26,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1580531.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:NET   Linq   System

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!