-
Type: Bug
-
Resolution: Done
-
Priority: Critical - P2
-
Affects Version/s: 2.0
-
Component/s: Serialization
-
None
-
Environment:MongoDB C# Legacy Driver version 2.0
This occurs when a class map is being deserialized which includes a non-mapped element which is the prefix of a mapped element. For example, given the class map:
[BsonIgnoreExtraElements] public class Test { public int Longer { get; set; } }
Attempting to deserialize the document:
{ Long: 20 }
will result in an EndOfStreamException.
- is duplicated by
-
CSHARP-1280 Deserializing fails if a document contains unmapped field which name starts with the same name as currently mapped class property.
- Closed
-
CSHARP-1261 Using _ts as element name for types participating in a class hierarchy leads to crash
- Closed