如何使用System.Linq [英] How Do I Use Using System.Linq

查看:243
本文介绍了如何使用System.Linq的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何启用system.linq

命名空间不存在消息

即时使用VS 2015 RC

how do i enable using system.linq
namespace does not exist message
im using VS 2015 RC

推荐答案

我尝试在Visual Studio 2015中使用相同的工具。只需确保您在项目中引用 System.Core.dll 库,即声明 System.Linq



双击引用并检查列表中是否存在 System.Core ,如果没有,则右键单击引用,然后选择添加引用 。从打开的窗口中,选择System.Core,然后单击添加。这样,现在如果你尝试使用命名空间(希望通过使用System.Linq; ),它就可以工作。



有关此命名空间的更多信息,请阅读: https:// msdn.microsoft.com/en-us/library/system.linq(v=vs.111).aspx [ ^ ]
I have tried using the same in Visual Studio 2015 and it works. Just make sure that you are referencing the System.Core.dll library in your project, that is where System.Linq is declared in.

Double-click References and check if System.Core is present in the list, if not then Right-click on Reference, and select Add Reference. From the window opened, select System.Core and click Add. That way, now if you try to use the namespace (hopefully by using System.Linq;) it would work.

For more about this namespace please read: https://msdn.microsoft.com/en-us/library/system.linq(v=vs.111).aspx[^]


这篇关于如何使用System.Linq的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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