Say I have an System.String[]
type object. I can query the type object to determine if it is an array
Type t1 = typeof(System.String[]);
bool isAnArray = t1.IsArray; // should be true
However how do I get a type object of the array item from t1
Type t2 = ....; // should be typeof(System.String)
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…