David Stephen
December 10th, 2002, 11:23 PM
I have a base class for a class that I store general configuration data. I load this data into a copy of the base class X in the main application.
Is it possible to copy the data from class X to the base class of another class Y
ie
Public Class Base()
Private Name as string
End Class
Public Class Class1()
Inherits Base
Private Value as String
End Class
dim X as new Base()
X.Name = "Test"
dim Y as new Class1()
I would like to do something like
Y.MyBase = X
or some serialization if possible
rather than copying each member value across.
Thank you
Is it possible to copy the data from class X to the base class of another class Y
ie
Public Class Base()
Private Name as string
End Class
Public Class Class1()
Inherits Base
Private Value as String
End Class
dim X as new Base()
X.Name = "Test"
dim Y as new Class1()
I would like to do something like
Y.MyBase = X
or some serialization if possible
rather than copying each member value across.
Thank you