|
Allow BsonClassMap to have more than one member of the same name (possible if a member in a subclass hides a base class member) as long as the element names are different. Changed MapMember to check for an existing map and return it before creating a new one.
NOTE: this solution requires you to specify an element name for at least one of the two members with the same name (for one, BSON doesn't allow duplicate element names, and even if it did during deserialization we wouldn't be able to tell which was which).
See CSharp122Tests.cs for sample code.
|