Wednesday, 27 July 2011

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));
    }
}

No comments:

Post a Comment