我对system.linq有问题 [英] i have problem with system.linq

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

问题描述

我该怎么办才能解决此错误?

What can I do to resolve this error?

Error   1   The type or namespace name 'linq' does not exist in the namespace 'System' (are you missing an assembly reference?) D:\Users\Roham\Desktop\c_sharp_projects\tel_book\tel_book\tel_book\Form2.cs 6   14  tel_book

推荐答案

使用System.Linq(大写L).


尝试添加适当的参考:System.Core

注意:这不是使用指令.
它是参考.单击引用,然后在解决方案资源管理器中添加引用.
如果程序集仅针对.NET 2.0,则无法添加.除了更改目标程序集,什么都没有做(尽管在Visual Studio 2005中是不可能的)
您可以从Microsoft下载免费的Visual C#2010 Express.
Try adding the appropriate Reference: System.Core

Note: this is not a using directive.
It is a Reference. Click References, then Add Reference in Solution Explorer.
If your assembly only targets .NET 2.0, you cannot add it. There is nothing to be done, but to change the target assembly (not possible in Visual Studio 2005, though)
You may download the free Visual C# 2010 Express from Microsoft.


这篇关于我对system.linq有问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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