[CSHARP-238] When serializing a class with a property that is a Dictionary where the keys are not strings the keys are serialized with a redundant "_t" element Created: 02/Jun/11 Updated: 02/Apr/15 Resolved: 02/Jun/11 |
|
| Status: | Closed |
| Project: | C# Driver |
| Component/s: | None |
| Affects Version/s: | 1.0 |
| Fix Version/s: | 1.1 |
| Type: | Bug | Priority: | Minor - P4 |
| Reporter: | Robert Stam | Assignee: | Robert Stam |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
For example, an instance of this class: public class Point { public int X; public int Y; }public class C { public ObjectId Id; public Dictionary<Point, int> Points; }is serialized as: > db.test.find() , , But the "_t" values are redundant because the type of the key is known to be Point. |
| Comments |
| Comment by Robert Stam [ 02/Jun/11 ] |
|
Fixed. |