G
Gary Brewer
G'day,
If I have an object of type 'Type' how do I get a type of the same object as
an array of x dimensions at runtime?
For example,
Type t=typeof(string);
Type tAsArray=typeof(string[]);
Can I programmatically get tAsArray from t without having to explicity
declare the type at compile time? I would be nice if something like
t.GetAsArray(int dimensions) existed so I could do this at runtime, maybe it
does I'm just looking in the wrong place?
Regards,
Gary Brewer
If I have an object of type 'Type' how do I get a type of the same object as
an array of x dimensions at runtime?
For example,
Type t=typeof(string);
Type tAsArray=typeof(string[]);
Can I programmatically get tAsArray from t without having to explicity
declare the type at compile time? I would be nice if something like
t.GetAsArray(int dimensions) existed so I could do this at runtime, maybe it
does I'm just looking in the wrong place?
Regards,
Gary Brewer