Why Linq Is Having Select Clause At The End?

user image

Muskan Anand

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]