Click here to Skip to main content
16,013,207 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
I am new to linq..Please make me clear. Why select clause comes after from clause? Please don't paste answer like

"The reason is, LINQ is used with C# or other programming languages, which requires all the variables to be declared first. From clause of LINQ query just defines the range or conditions to select records. So that’s why from clause must appear before Select in LINQ."

i din't understand the meaning of range or conditions what it means.

thanks in advance
Posted
Updated 5-Nov-12 1:57am
v2

Check this article on CP, Understanding LINQ (C#)[^]


Lots of articles on Google[^] too
 
Share this answer
 
Because if you start with the SELECT clause, Visual Studio Intellisense will not know what datatype you are using.

That's it.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900