CodePaste Logo
New Snippet New Snippet Recent Snippets Recent Snippets My Snippets My Snippets Web Code Search Snippets Search
Sign inor Register
Language: C#

Using the C#4 Dynamic keyword & Expando class

879 Views
Copy Code Show/Hide Line Numbers
   1:  dynamic _Dynamic = new ExpandoObject();
   2:  _Dynamic.Color = "Brown";
   3:  _Dynamic.Print = new Action(() => { Console.Write(_Dynamic.Color); });
   4:  _Dynamic.Print();
by Jerry Nixon
  March 05, 2010 @ 8:38am
Tags:

Add a comment


Report Abuse
brought to you by:
West Wind Techologies



If you find this site useful and use it frequently please consider making a donation to support this free service.
Donate