user image

Preeti Tripathi

Job Interview Skills
English
2 years ago

Question 170. Why Linq Is Having Select Clause At The End?

user image

Abhishek Mishra

2 years ago

Due to IntelliSense of Visual Studio. If the select clause was in the first of LINQ, then the IDE cannot populate the properties inside the object. Eg:from f in db.Forum where f.Id > 0 select f.Name; If the select was in front - the "select f." could not populate any autocomplete properties or methods.

Recent Doubts

Close [x]