Hi,
i've been using your "Fast Serialization" code for quite some time, and up until now without any issues.
When working with BinaryFormatter, i'm able to serialize and de-serialize using your great fast serializer code, however i can't seem to be able to use it when working with DataContractSerializer.
the following code snippet works with the fast serializer:
BinaryFormatter bformatter = new BinaryFormatter();
bformatter.Serialize(stream, dataset);
stream.Close();
bformatter = new BinaryFormatter();
TDataSetType newDs = (TDataSetType)bformatter.Deserialize(stream);
stream.Close();
the following code does not work with the fast serializer:
DataContractSerializer dcSerializer = new DataContractSerializer(typeof(TDataSetType));
dcSerializer.WriteObject(stream, dataset);
stream.Close();
dcSerializer = new DataContractSerializer(typeof(TDataSetType));
TDataSetType newDs = (TDataSetType)dcSerializer.ReadObject(stream);
stream.Close();
What should i do in order to step into the Fast Serializer, also when using the DataContractSerializer (as oppose to the BinaryFormatter)?
Thanks! ;)