Hi there,
a couple of days ago I tried to write a class that inherits from ArrayList
and overwrites some members in order to get a type save array for my
application.
public gc class MyData : public Object
{
}
public gc class MyArrayList : public ArrayList
{
... //do some declaration
public:
__property MyData __gc* get_Item ( int p_Index ) { // return .. ; }
}
in the line that declares the property I get the following compiler error:
error C2392: //... // : covariant returns types are not supported in managed
types!
Does anybody have an idea how to solve this problem. I red this was a bug in
VS2002 ( VC 7.0 )
but I'm using VS 2003 (VC 7.1) where it should have been fixed.
Thank you very much,
Sebastian Dau.