Skip to content

Instantly share code, notes, and snippets.

@booyaa
Created June 12, 2013 11:04
Show Gist options
  • Select an option

  • Save booyaa/5764399 to your computer and use it in GitHub Desktop.

Select an option

Save booyaa/5764399 to your computer and use it in GitHub Desktop.
Linq A DataTable
// sources: http://stackoverflow.com/a/11593/105282
var results = from r in dt.AsEnumerable()
select r.Field<string>("foo");
foreach(var item in results.ToList())
{
Console.WriteLine(item);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment