G
Guest
OK, this was hard to explain on a short title. Sorry.
I have an abstract class (MustInherit) named Base, and a generic collection
class named ColBase which can only take Base and derived classes as it's
type.
I also have an indefinite number of classes that inherit Base. I want to
make a method on Base that returns a ColBase(of Base), but instead of
ColBase(of Base) use the derived class.
So if I have a class named Inherited, when I call Inherited.GetColBase it
returns a ColBase(of Inherited) and not a ColBase(of Base).
Do you know if this is possible, and if so, how to do it? Thanks a lot,
JoaquÃn Raya
I have an abstract class (MustInherit) named Base, and a generic collection
class named ColBase which can only take Base and derived classes as it's
type.
I also have an indefinite number of classes that inherit Base. I want to
make a method on Base that returns a ColBase(of Base), but instead of
ColBase(of Base) use the derived class.
So if I have a class named Inherited, when I call Inherited.GetColBase it
returns a ColBase(of Inherited) and not a ColBase(of Base).
Do you know if this is possible, and if so, how to do it? Thanks a lot,
JoaquÃn Raya