Possible Duplicates:
Which LINQ syntax do you prefer? Fluent or Query Expression
LINQ: Dot Notation vs Query Expression
What is the difference between the two methods of sorting in Linq? Is one better than the other performance wise?
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 query syntax is syntactical sugar that gets converted to the method approach. There’s no difference, use whatever style suits your needs.
From the LINQ Query Syntax versus Method Syntax MSDN article: