1
Vote

Incorrectly serialized/deserialized types

description

Some types are not correctly serialized/deserialized by FastBinaryJSON 1.3.7.
The complete classes are presented in the attached file.

. Inherited generic list:
public class MyList : List<int> { }
. Inherited generic Dictionary:
public class MyDictionary : Dictionary<int, double> { }
. A generic ICollection (the type is deserialized, but empty):
public class MyICollection : ICollection<int> {.....}
. A not generic IList:
public class MyNotGenericIList : System.Collections.IList {...}
. A custom generic IDictionary:
public class MyGenericIDictionaryMoreProps : IDictionary<int, string> // Does not inherit IDictionary.
{...}
. The field of a descendent of a generic List:
public class SomeItemsMoreFields : List<int>
{
    public string s = "A field";
}
. The field of a custom IDictionary:
public class MyGenericIDictionaryMoreProps : IDictionary<int, string> // Does not inherit IDictionary.
{
    public string MyField = "default text";
...
}

file attachments

comments