Proposal: "single", "first", "last" contextual keywords in LINQ query "select" clauses #119
Replies: 9 comments
-
💡 You probably meant to use |
Beta Was this translation helpful? Give feedback.
-
@sharwell Thanks, fixed |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
Also, instead of predefining those methods, could we allow the user to define a method delegate? This could look like this (For readability, I also renamed the keyword
|
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
Ah yes, I understand; that makes sense. |
Beta Was this translation helpful? Give feedback.
-
@orthoxerox I believe 2nd and 3rd example in OP lack the 'single' keyword; I've tried to make sense out of it as it is, and failed - so I assume it's a typo. |
Beta Was this translation helpful? Give feedback.
-
@amis92 Thanks, fixed. |
Beta Was this translation helpful? Give feedback.
-
Syntax
Semantics
If
single-item
is present, then the following translation cases apply:Beta Was this translation helpful? Give feedback.
All reactions