{
class AAA
{
public string name;
}
class Program
{
static void Main(string[] args)
{
AAA a = new AAA();
Type atype = typeof(AAA);
Type bt = a.GetType();
var cc = Activator.CreateInstance(bt);
FieldInfo fi = bt.GetField("name");
fi.SetValue(cc, "test");
Console.WriteLine("Hello World!" + fi.GetValue(cc));
Console.ReadLine();
}
}
}