R
reycri
I have a .Net class (a collection) that already supports serialization.
It implements ISerializable...
Now, I need it to also support the COM interface IPersistStream. Among
other things, I need to be able to pass instances of this class to
methods of queued components (in COM+).
I want to "piggy back" my implementation of IPersistStream to what is
already being used for serialization. So, in the Save() method of
IPersistStream, the object serializes itself using the BinaryFormatter
and writes it to the given stream.
The problem is in the Load() method, I cannot figure out how to make
the object take the given stream and deserialize itself "in place".
Am I missing something?
It implements ISerializable...
Now, I need it to also support the COM interface IPersistStream. Among
other things, I need to be able to pass instances of this class to
methods of queued components (in COM+).
I want to "piggy back" my implementation of IPersistStream to what is
already being used for serialization. So, in the Save() method of
IPersistStream, the object serializes itself using the BinaryFormatter
and writes it to the given stream.
The problem is in the Load() method, I cannot figure out how to make
the object take the given stream and deserialize itself "in place".
Am I missing something?