Why does VB have more LINQ keywords than C#?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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!)