D
Dot net work
I thought I'd be clever and create my own strongly typed array list,
because I wanted to be sure that when an object was added to the
arraylist, it would *only* be an object of a class that I had made.
But after I got it all working, I realised that the inheritance
mechanism also allows access to the inherited Add methods, and these
allow you to add objects of any type!
I don't seem to have achieved what I tried to do.
(Please note, if this makes any difference, I am inheriting from a 3rd
party arraylist, and this in turn inherits from the MS arraylist.)
Can any one offer any tips to rectify this problem please?
TIA,
-dnw.
because I wanted to be sure that when an object was added to the
arraylist, it would *only* be an object of a class that I had made.
But after I got it all working, I realised that the inheritance
mechanism also allows access to the inherited Add methods, and these
allow you to add objects of any type!
I don't seem to have achieved what I tried to do.
(Please note, if this makes any difference, I am inheriting from a 3rd
party arraylist, and this in turn inherits from the MS arraylist.)
Can any one offer any tips to rectify this problem please?
TIA,
-dnw.