Linq-Syntax (type-safe SQL)

var stream = from c in cars 
   where c.colour == Colour.Red
   select c.wheels;
wird vom Compiler übersetzt in
var stream = cars
   .Where (c => c.colour == Colour.Red)
   .Select (c.wheels);

Beachte:

Übung: Ausdrücke mit mehreren from, usw.



Johannes Waldmann 2013-06-11