Skip to content

Instantly share code, notes, and snippets.

@pparadis
Created May 29, 2012 23:23
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 pparadis/2831427 to your computer and use it in GitHub Desktop.
Save pparadis/2831427 to your computer and use it in GitHub Desktop.
ExpandoObject
dynamic expando = new ExpandoObject();
expando.Title = "Ceci est un titre";
expando.Nom = "Paradis";
expando.Prenom = "Pascal";
foreach (var e in (IDictionary<String, Object>) expando)
{
Console.WriteLine(e.Value);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment