I have objects in a List(of BodyComponent)
the BodyComponent
is a baseclass, The items beeing added into the list are objects from a derived class.
Public Class Body_Cylinder
' Get the base properties
Inherits BodyComponent
' Set new properties that are only required for cylinders
Public Property Segments() As Integer
Public Property LW_Orientation() As Double End Class
Now I would like to convert the object back to it's original class Body_Cylinder
So the user can enter some class specific values for the object.
But I don't know how to do this operation, I looked for some related posts but these are all written in c#
of which I don't have any knowledge.
I think the answer might be here but .. can't read it Link