H
Herby
Can generic types be casted?
say Vector<Type^>^ to Vector<CodeType^>^
Where CodeType is a derivative of Type
Is this possible ?
Or is there something quite static about generics?
I would like a pointer to Vector<Type^>^
and then dynamically instantiate it to a derivative of Type ???
i.e
Vector<Type^>^ mArray = gcnew Vector<CodeType^>();
Or am i just expecting too much?
How would i get round this problem?
Thanks.
say Vector<Type^>^ to Vector<CodeType^>^
Where CodeType is a derivative of Type
Is this possible ?
Or is there something quite static about generics?
I would like a pointer to Vector<Type^>^
and then dynamically instantiate it to a derivative of Type ???
i.e
Vector<Type^>^ mArray = gcnew Vector<CodeType^>();
Or am i just expecting too much?
How would i get round this problem?
Thanks.