M
Michael Bray
Let's say I am using reflection to analyze my classes, and I have an array
of another class. How do I get the base class that forms the array from a
type?
public class A
{
}
A[] MyArray = new A[];
Type t = MyArray.GetType();
/// FROM THIS POINT, I want to get back to the 'A' type using ONLY my t
/// variable - how?
Type t2 = ??? (I want this to end up being typeof(A))
Thanks!
-mdb
of another class. How do I get the base class that forms the array from a
type?
public class A
{
}
A[] MyArray = new A[];
Type t = MyArray.GetType();
/// FROM THIS POINT, I want to get back to the 'A' type using ONLY my t
/// variable - how?
Type t2 = ??? (I want this to end up being typeof(A))
Thanks!
-mdb