You can't implement typesafe collections in MC++
Managed C++/CLI
1
Posts
1
Posters
2
Views
1
Watching
-
I was trying to be extra smart by implamenting typesafe collections in Managed C++. But, MC++ doesnot support covariant types.:(( You can't have __property MyItem* get_Item(int index) { } Because IList already has such a property.:(( I checked Nish's article he got away because he just implemented ICollextion and not IList.