You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The GroBuf misses values if the value is the same as a key. So if key == "testval" and value == "testval", so after serialization/deserialization your hashtable["testval"] will be null.
Steps to reproduce (just pseudo-code):
Create simple Hashtable ht = new Hashtable();
hashtable.Add("testval", "testval")
3, serializer.Serialize(hashtable) and then serializer.Deserialize(byte[]....)
check that deserialized hashtable["testval"] == null
The text was updated successfully, but these errors were encountered:
Hmm, this test passes:
var ht = new Hashtable();
ht.Add("testval", "testval");
var bytes = serializer.Serialize(ht);
var ht2 = serializer.Deserialize(bytes);
Assert.AreEqual("testval", ht2["testval"]);
Ok, I'l look at it. By the way do you really need to use GroBufOptions.PackReferences? GroBuf works slower with this option, we only used when there was a need to serialize/deserialize graphs with loops.
The GroBuf misses values if the value is the same as a key. So if key == "testval" and value == "testval", so after serialization/deserialization your hashtable["testval"] will be null.
Steps to reproduce (just pseudo-code):
3, serializer.Serialize(hashtable) and then serializer.Deserialize(byte[]....)
The text was updated successfully, but these errors were encountered: