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

Parse XML to dynamic object in C#

C# Crop white space from around the image