C
Charles Law
I have an object that is created like this
Dim MyObj As MyClass
MyObj = New MyClass(objInfo)
The point of this being that the creation of the object requires some
information so that it can set some internal parameters.
When the object is serialised, its state is saved; but not the internal
stuff that was derived from objInfo, because it comes from somewhere else.
So far so good.
When I deserialise the object, it is effectively created like this
MyObj = New MyClass()
so it has to instantiate itself without the objInfo stuff, and therein lies
my problem.
Is there a straight forward way round this, or again is there a pattern that
addresses this problem?
TIA
Charles
Dim MyObj As MyClass
MyObj = New MyClass(objInfo)
The point of this being that the creation of the object requires some
information so that it can set some internal parameters.
When the object is serialised, its state is saved; but not the internal
stuff that was derived from objInfo, because it comes from somewhere else.
So far so good.
When I deserialise the object, it is effectively created like this
MyObj = New MyClass()
so it has to instantiate itself without the objInfo stuff, and therein lies
my problem.
Is there a straight forward way round this, or again is there a pattern that
addresses this problem?
TIA
Charles