Skip to content

Instantly share code, notes, and snippets.

@einarwh
Created February 28, 2013 08:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save einarwh/5055250 to your computer and use it in GitHub Desktop.
Save einarwh/5055250 to your computer and use it in GitHub Desktop.
Anonymous canines.
protected void Page_Load(object sender, EventArgs e)
{
_grid.DataSource = GetCanines().Select(
c => new {
Biscuit = c.Eats(Food.Biscuit),
Meatballs = c.Eats(Food.Meatballs),
You = c.Eats(Food.You),
c.Bark
});
_grid.DataBind();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment