DerrickBrayanClayton / protobuf-net

Automatically exported from code.google.com/p/protobuf-net
0 stars 0 forks source link

Deserialization of nexted generic properties fails #54

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Given a class:
    [ProtoContract]
    class Test
    {
        [ProtoMember(1)]
        public Dictionary<float, List<int>> Lists { get; set; }
    }

Serialization goes ok, but deserialization fails with the following exception:
DeserializeImpl should not be called for PropertyList:
   at ProtoBuf.Property.PropertyList`3.DeserializeImpl(TSource source,
SerializationContext context) in
d:\protobuf-net-FixSnk\trunk\protobuf-net\Property\PropertyList.cs:line 47
   at ProtoBuf.Property.PropertyPairString`3.DeserializeImpl(TSource
source, SerializationContext context) in
d:\protobuf-net-FixSnk\trunk\protobuf-net\Property\PropertyPairString.cs:line
53
   at ProtoBuf.Property.PropertyList`3.Deserialize(TSource source,
SerializationContext context) in
d:\protobuf-net-FixSnk\trunk\protobuf-net\Property\PropertyList.cs:line 59
   at ProtoBuf.Serializer`1.Deserialize[TCreation](T& instance,
SerializationContext context) in
d:\protobuf-net-FixSnk\trunk\protobuf-net\SerializerT.cs:line 563
   at ProtoBuf.Serializer`1.DeserializeChecked[TCreation](T& instance,
SerializationContext source) in
d:\protobuf-net-FixSnk\trunk\protobuf-net\SerializerT.cs:line 398
   at ProtoBuf.SerializerItemProxy`2.Deserialize(TActualClass& instance,
SerializationContext source) in
d:\protobuf-net-FixSnk\trunk\protobuf-net\SerializerProxy.cs:line 86
   at ProtoBuf.Serializer.Deserialize[T](SerializationContext source) in
d:\protobuf-net-

Original issue reported on code.google.com by maciej.p...@gmail.com on 27 Mar 2009 at 6:52

GoogleCodeExporter commented 8 years ago
OK - I'll investigate; thanks for the sample.

Original comment by marc.gravell on 28 Mar 2009 at 10:09

GoogleCodeExporter commented 8 years ago
Fixed r247

Original comment by marc.gravell on 2 Apr 2009 at 6:41