Skip to content

Instantly share code, notes, and snippets.

@angelovstanton
Created September 6, 2015 10:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save angelovstanton/f5d79f1d09f06d80de59 to your computer and use it in GitHub Desktop.
Save angelovstanton/f5d79f1d09f06d80de59 to your computer and use it in GitHub Desktop.
dynamic samplefootballLegendObject = new ExpandoObject();
samplefootballLegendObject.FirstName = "Joro";
samplefootballLegendObject.LastName = "Beckham-a";
samplefootballLegendObject.Team = "Loko Mezdra";
samplefootballLegendObject.Salary = 380.5m;
samplefootballLegendObject.AsString = new Action(
() =>
Console.WriteLine("{0} {1} {2} {3}",
samplefootballLegendObject.FirstName,
samplefootballLegendObject.LastName,
samplefootballLegendObject.Team,
samplefootballLegendObject.Salary)
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment