最佳答案
假设我有一个 System.String[]
类型对象。我可以查询类型对象来确定它是否是一个数组
Type t1 = typeof(System.String[]);
bool isAnArray = t1.IsArray; // should be true
但是如何从 t1获得数组项的类型对象呢
Type t2 = ....; // should be typeof(System.String)