Hi,
Introduction:
****************
I am trying to DeSerialize a file that was created by an unmanaged
application by the binary formatter, to achieve that I am implementing the
following ISerializable methods:
1. GetObjectData(SerializationInfo info, StreamingContext context)
2. constructor(SerializationInfo info, StreamingContext context)
The problem:
****************
Any .NET Object has a unique identifier associated with it ( a GUID ), the
BinaryFormatter uses this GUID to resolve the type of the object being
DeSeriailized, When trying to DeSerialize a file that was created by a non
..NET application this GUID is not available, thuse the BinaryFormatter
doesn't know the serialized type and the DeSerialization fails.
Questions:
****************
1. Is it possible to DeSerialize a propriotary file created by an unmanaged
application ( one that doesn't contain the type GUIDs ).
2. Is it possible to manually specify the type being deserialized.
3. May that be realted to the BinaryFormatter.UnsafeDeserialize API ?
--
Nadav
http://www.ddevel.com