I serialized a SortedList<long,float?> with the follow code:
var data = new SortedList<long, float?>();
//.. code to populate data
using (var fs = new FileStream(filepath, FileMode.Create))
{
await MemoryPackSerializer.SerializeAsync(fs, data);
}
However, when I deserizalised it, the values in the sorted list are incorrect.
using (var readStream = new FileStream(filepath, FileMode.Open))
{
results = await MemoryPackSerializer.DeserializeAsync<SortedList<long, float?>>(readStream);
}
The same problem seems to happens with SortedList<long,double?>
Am I doing anything incorrectly which may have caused this?
I serialized a SortedList<long,float?> with the follow code:
However, when I deserizalised it, the values in the sorted list are incorrect.
The same problem seems to happens with SortedList<long,double?>
Am I doing anything incorrectly which may have caused this?
Thanks!