Skip to content

Instantly share code, notes, and snippets.

@AlbertoMonteiro
Forked from icarocamelo/gist:2659726
Created May 11, 2012 13:49
Show Gist options
  • Save AlbertoMonteiro/2659777 to your computer and use it in GitHub Desktop.
Save AlbertoMonteiro/2659777 to your computer and use it in GitHub Desktop.
SQL Lambda Expression
1) Using SQL-like Expression
var iNames = from i in employees
select i.name;
2) Using Lambda Expression
var iNames = employees.Select(r => r.name);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment