I apologize if that title is confusing. This question may be a result of lack of coffee and/or sleep, but my mind is not working correctly right now.
Anyways, I have an inheritance tree like so (I know the architecture isn't ideal):
BaseClass
GeneralForm : Inherits BaseClass
SpecificForm : Inherits GeneralForm
And an object like so:
MyItem
MySpecificItem : Inherits MyItem
I have Items As List (Of MyItem)
as a property in BaseClass
. I would like for SpecificForm
to somehow override Items
to return type List (Of MySpecificItem)
. I feel like this is easy to do, but again, my head is spinning and I can't think straight at the moment.
Thanks so much in advance.
EDIT
If the above isn't possible, is it possible to take a List (Of MyItem)
and turn it into a List (Of MySpecificItem)
? MySpecificItem
has just one additional property that is specific to SpecificForm
, but I NEED it.
Anyone? :\