P
Pieter
Hi,
I have a class clsSubClass which inherits from clsClass.
When I instantiate an object of clsClass (MyClass), and I instantiate an
object from clsSubclass (MySubClass) I can do an "MyClass = MySubclass".
But when I declare two generic list of them ("Dim MyList1 as List(Of
clsClass)" and "Dim MyList2 as List(Of clsSubClass)"), I can't do an
"MyList1 = MyList2".
Why is this exactly, and is there a way to implement this behaviour?
Thanks a lot in advance,
Pieter
I have a class clsSubClass which inherits from clsClass.
When I instantiate an object of clsClass (MyClass), and I instantiate an
object from clsSubclass (MySubClass) I can do an "MyClass = MySubclass".
But when I declare two generic list of them ("Dim MyList1 as List(Of
clsClass)" and "Dim MyList2 as List(Of clsSubClass)"), I can't do an
"MyList1 = MyList2".
Why is this exactly, and is there a way to implement this behaviour?
Thanks a lot in advance,
Pieter