有没有一种方法可以判断一个对象被分配的类型是否是动态类型?
例如:
dynamic foo = GetCat();
Console.WriteLine( (foo is Cat).ToString() ); // will print True because
// at the execution time, foo will have assumed the Cat type. However, is
// there a mechanism by which I can reflect on foo and say, "This guy was assigned
// a dynamic type, to begin with."?