通用(动态)类型

using System;
using System.Globalization;

//Initialized by any type
dynamic d = "some string";
Console.WriteLine(d + ", type: " + d.GetType());

d = 3.14;
Console.WriteLine(d + ", type: " + d.GetType());

d = new[] {235};
Console.WriteLine(d + ", type: " + d.GetType());

d = new CultureInfo("ru");
Console.WriteLine(d + ", type: " + d.GetType());