D
Dansk
Hi all,
I have a class A, and onother class B that inherits from A (class B : A).
I also have a collection of B : Collection<B>
Is there a clean way to see the Colection<B> as a Collection<A> ?
The only thing I see at the moment is to copy all the elements of the
Collection<B> into a new Collection<A>.
Thanks in advance
Dansk.
I have a class A, and onother class B that inherits from A (class B : A).
I also have a collection of B : Collection<B>
Is there a clean way to see the Colection<B> as a Collection<A> ?
The only thing I see at the moment is to copy all the elements of the
Collection<B> into a new Collection<A>.
Thanks in advance
Dansk.