D
Daniel =?iso-8859-1?Q?Lidstr=F6m?=
I have a CS class I wish to write in MC++:
public class UnitsCollection : ArrayList
{
new public Units this[int index]
{
get { return (Units) base[index]; }
set { base[index] = value; }
}
}
Would the MC++ class below be equivalent?
[DefaultMember("Item")]
public __gc class UnitsCollection : public ArrayList
{
public:
__property Units* get_Item(int index) {
return (Units*)__super[index];
}
__property void set_Item(Units* u) {
__super::Add(u);
}
};
public class UnitsCollection : ArrayList
{
new public Units this[int index]
{
get { return (Units) base[index]; }
set { base[index] = value; }
}
}
Would the MC++ class below be equivalent?
[DefaultMember("Item")]
public __gc class UnitsCollection : public ArrayList
{
public:
__property Units* get_Item(int index) {
return (Units*)__super[index];
}
__property void set_Item(Units* u) {
__super::Add(u);
}
};