[CSHARP-2541] when using inherentence of classes and hiding class members a serialization exception occurs with duplicate property name Created: 08/Mar/19 Updated: 27/Oct/23 Resolved: 19/Mar/19 |
|
| Status: | Closed |
| Project: | C# Driver |
| Component/s: | BSON |
| Affects Version/s: | 2.7.3 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Martien Poels | Assignee: | Robert Stam |
| Resolution: | Works as Designed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
c#, windows, server running mongo atlas |
||
| Issue Links: |
|
||||||||
| Description |
|
if you have nested classes that need to be overriden you normally will use the keyword new to hide base properties. But if you do that the serializer complains about duplicate property names. The message it gives is correct but in the supplied case this is not a problem but the intention todo so. Sample and details are in stackoverflow |
| Comments |
| Comment by Robert Stam [ 19/Mar/19 ] |
|
See the comments on |