Created
May 23, 2012 17:57
-
-
Save DinisCruz/2776687 to your computer and use it in GitHub Desktop.
Trying 4.0 C# ExpandoObject
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dynamic expando = new ExpandoObject(); | |
expando.Name = "John"; | |
expando.Speak = new Func<string>(()=> { return "Hi " + expando.Name;}); | |
return expando.Speak(); | |
//using System.Dynamic; | |
//O2Ref:System.Core.dll | |
//O2Ref:Microsoft.CSharp.dll |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment