Inherits, Base Class and CType
Hi!
Is this possible in VB.Net and if it is, does anyone have some sourcecode to share cause I can't seem to get it right :(
Public MustInherit Class MyBaseClass
End Class
Public Class clsA
Inherits MyBaseClass
En Class
Public Class clsB
Inherits MyBaseClass
En Class
Dim A as new clsA
Dim B as new clsB
A = CType(B, clsA)
Want i'm trying to do is to create a new A object that the base class values already set to B's base class values.
Any suggestions ?
Regards,
Per

