linq c# cheatsheet code example
Example 1: linq cheat sheet
Dim query = from m in Manufacturers
where m.Name = "Trek"
select m
Dim lambda = Manufacturers.Where(function(m) m.Name = "Trek").Select(function(m) m)
Example 2: linq cheat sheet
var query = from m in Manufacturers
where m.Name == "Trek"
select m;
var lambda = Manufacturers.Where(m => m.Name == "Trek").Select(m => m);