Dynamic keyword in .Net 4.0 with ExpandoObject

[TestFixture]
public class TestDynamic
{
    [Test]
    public void Test()
    {
        dynamic test = new ExpandoObject();
        test.FirstName = "Michael";
        test.SecondName = "Jordan";
        Console.WriteLine(string.Format("{0} {1}",test.FirstName,test.SecondName));
    }
}

Comments

Popular posts from this blog

Tibco Rendezvous (tibrv) C# .Net example

Parse XML to dynamic object in C#