What are the pros and cons of LINQ operators and LINQ methods? Does one have limitations or added capabilities the other does not?
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.
The term “operator” in LINQ isn’t the same as “operator” in the normal sense of C# language operators, (+, && etc). The LINQ standard query operators are just the LINQ methods which are expected to be available where possible through most providers (and the ones made available through LINQ to Objects in particular).
Were you actually asking about the pros and cons of using query expressions like this:
vs the “fluent interface” or “dot notation” of normal extension method calls:
? If so, I can write about that in more detail, but basically:
Join,GroupBy) tend to be more readable in query expression syntaxCount(),ToList()etc) then having to bracket the query expression can be ugly