Why does VB have more LINQ keywords than C#?
If i remember correctly the only 4 keywords that are available to VB.Net and not C# via the query syntax are
VB.Net added these keywords because we felt it would be valuable to our users. We envisioned query syntax being a primary way VB.net users would use LINQ and wanted to enable as many scenarios as possible via the syntax.
I do not know why C# left these out. My speculation is that they didn't feel the scenario justified the cost especially considering the feature is still available via extension methods.
EDIT Added Aggregate and a few others (thanks Dario and Chris!)
The VB team decided to create more language extensions than the C# team did (in terms of keywords that translate to standard query operators). I chalk this up to different teams having different design goals.
Fortunately both languages have full access to all of the standard query operators that are available so there is no loss of functionality.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With