[CSHARP-301] Deserialization of Dictionary that was serialized with nominalType object fails due to lack of type information Created: 09/Aug/11  Updated: 02/Apr/15  Resolved: 18/Oct/11

Status: Closed
Project: C# Driver
Component/s: None
Affects Version/s: 1.1
Fix Version/s: 1.3

Type: Bug Priority: Major - P3
Reporter: Robert Stam Assignee: Robert Stam
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to CSHARP-263 Deserialization of array that was ser... Closed

 Description   

Can reproduce using this class:

public class C

{ public ObjectId Id; public object Obj; }

and this code:

collection.RemoveAll();
var c = new C { Obj = new Dictionary<string, int> {

{ "a", 1 }

};
collection.Insert(c);

var r = collection.FindOneAs<C>(); // fails


Generated at Wed Feb 07 21:36:25 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.