所以最近我一直在用LINQ做事,我一直在网上查找所有集成LINQ关键字的完整列表,但我找不到任何。
这些是我所知道的一些:
from in let group by into orderby where select还有其他我不知道的东西吗? 我可以在哪里找到集成LINQ的所有可能的完整列表?
So I've been doing things with LINQ lately and I've been looking online for a complete list of all integrated LINQ keywords and i couldn't find any.
These are some of the ones i know:
from in let group by into orderby where selectAre there any others that I don't know about? Where can I go to find a complete list of all the things possible with integrated LINQ?
最满意答案
您需要通过查询表达式区分标准LINQ查询运算符和C#支持的运算符。 前者比后者多得多 - 而VB直接支持其中一些语言。
有关所有不同运算符以及哪些查询表达式部分绑定到它们的详细信息,您可能需要阅读我的Edulinq博客文章系列 。 这是为了教育目的而重新实现LINQ到Objects,看看每个操作符的行为方式等等。 第41部分明确地涉及查询表达式,包括底部的备忘单。
You need to distinguish in your mind between the standard LINQ query operators and the operators that are supported in C# by query expressions. There are far more of the former than the latter - and VB supports some of them in the language directly.
For quite a bit of detail about all the different operators, and which query expression parts bind to them, you may want to read my Edulinq blog post series. It's a reimplementation of LINQ to Objects for educational purposes, looking at how each operator behaves etc. Part 41 is explicitly about query expressions, including a cheat sheet at the bottom.
更多推荐
发布评论