Is it possible to serialize a COM class for which you don't have the
source code? Obviously it won't work without the [Serializable]
attribute, which I can't add, and implementing ISerializable on a
derived class won't help because I don't have access to the private
fields that I would need to write to a file for the serialization to
be successful.
Is there a way to write the block of memory from a pointer? I could
use Marshal.Structu reToPtr() to get a pointer to the object and
Marshal.SizeOf( ) to determine how much memory it takes up, and write
all of that to a binary file.
source code? Obviously it won't work without the [Serializable]
attribute, which I can't add, and implementing ISerializable on a
derived class won't help because I don't have access to the private
fields that I would need to write to a file for the serialization to
be successful.
Is there a way to write the block of memory from a pointer? I could
use Marshal.Structu reToPtr() to get a pointer to the object and
Marshal.SizeOf( ) to determine how much memory it takes up, and write
all of that to a binary file.
Comment