Details
-
Bug
-
Resolution: Done
-
Critical - P2
-
2.0
-
None
-
MongoDB C# Legacy Driver version 2.0
Description
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.
Attachments
Issue Links
- 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
-