且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

错误无法找到源类型“System.Collections.Generic.List”的查询模式的实现。 '哪里'找不到。

更新时间:2023-11-22 11:09:52

您需要1)添加对程序集System.Core的引用(默认情况下添加到从Visual Studio中的模板创建的新项目中),2)使用命名空间 System。 Linq

http:// msdn .microsoft.com / zh-cn / library / system.linq.aspx [ ^ ]。



-SA
You need to 1) add a reference to the assembly "System.Core" (added to a new project created from a template in Visual Studio by default), 2) use the namespace System.Linq:
http://msdn.microsoft.com/en-us/library/system.linq.aspx[^].

—SA


由于LINQ是.NET 3.0的功能,你应该通过选择版本3.0创建一个项目

请检查你是否选择了小于3.0

如果你想要了解哪个版本或者您想要更改.NET版本



1.右键单击您的项目并转到项目属性(最后一个选项)



2.在t他的应用程序选项卡看看目标框架是否为3.0如果小于3.0请将其更改为大于3.0



3.关闭当前选项卡并添加系统。 Linq命名空间并开始处理LINQ:)



谢谢。
Since LINQ is the feature of .NET 3.0 you should create a project by selecting the version 3.0
Please check if you have selected less than 3.0
If you want to know which version or if you want to change the .NET version

1.Right click on your project and Go to project properties(Last Option)

2. On the application Tab see if the "Target framework is 3.0" if its less than 3.0 please change it to greater than 3.0

3. Close the current tab and add System.Linq namespace and start working on "LINQ" :)

Thank you.


这应该有帮助

无法找到源类型查询模式的实现 - *** [ ^ ]