using System;
using System.Dynamic;
using System.Collections.Generic;
public class Program
{
public static void Main()
string propertyName = "test";
IDictionary<string, object> myObject = new ExpandoObject();
myObject[propertyName] = "Hello World";
Console.WriteLine(myObject[propertyName]);
}