[CSHARP-1478] BsonClassMap.Reset() is not consistent with default constructor Created: 15/Nov/15 Updated: 04/Jan/21 Resolved: 04/Jan/21 |
|
| Status: | Closed |
| Project: | C# Driver |
| Component/s: | Serialization |
| Affects Version/s: | 2.1.1 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Antoine Bursaux | Assignee: | Boris Dogadov |
| Resolution: | Won't Fix | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Description |
|
The default BsonClassMap constructor sets the IgnoreExtraElements property to false. The BsonClassMap.Reset() method sets the IgnoreExtraElements property to true. The behavior should be identical for both. |
| Comments |
| Comment by Boris Dogadov [ 04/Jan/21 ] |
|
Hi bursauxa, |
| Comment by Craig Wilson [ 15/Nov/15 ] |
|
PR here: https://github.com/mongodb/mongo-csharp-driver/pull/225 |