Skip to content

Instantly share code, notes, and snippets.

@icarocamelo
Created May 11, 2012 13:42
Show Gist options
  • Save icarocamelo/2659726 to your computer and use it in GitHub Desktop.
Save icarocamelo/2659726 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<Employee, string>(r => r.name);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment