Lecture overview -- Keyboard shortcut: 'u'  Previous page: The technical basis of LINQ -- Keyboard shortcut: 'p'  Next page: A Final Example: Sieve of Eratosthenes. -- Keyboard shortcut: 'n'  Lecture notes - all slides together  Annotated slide -- Keyboard shortcut: 't'  Alphabetic index  Help page about these notes  Course home    An Introduction to LINQ - slide 10 : 11

Query Syntax versus Method Syntax
Query Syntax is syntactic sugar on top of the Method syntax, which we have introduced above
ex1.cs
The average age of all females - revisited.
ex1-qs.cs
Same program with use of query syntax.
ex3.cs
A comma-separated list of all male first names, youngest first - revisited.
ex3-qs.cs
Same program with use of query syntax.