Skip to content

Conversation

BorisDog
Copy link
Contributor

@BorisDog BorisDog commented Mar 5, 2024

Also addresses CSHARP-2354

@BorisDog BorisDog requested a review from a team as a code owner March 5, 2024 23:00
@BorisDog BorisDog requested review from rstam and removed request for a team March 5, 2024 23:00
Copy link
Contributor

@rstam rstam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Visual Studio warned that the line endings in BsonDocument.cs are inconsistent.

Other than that everything looks OK.

{
if (document == null)
{
throw new ArgumentNullException("document");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nameof(document) instead of "document" ensures any refactoring stays in tact.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Done.

@BorisDog
Copy link
Contributor Author

BorisDog commented Mar 6, 2024

Visual Studio warned that the line endings in BsonDocument.cs are inconsistent.

Other than that everything looks OK.

Thanks, line endings should be consistent now.

@BorisDog BorisDog requested review from damieng and rstam March 6, 2024 20:24
Copy link
Contributor

@rstam rstam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

admilazz and others added 2 commits March 12, 2024 14:55
* Made DeepClone work with documents that have duplicate element names
* Added constructors that take documents and work if they have duplicate names

MongoDB.Bson/ObjectModel/LazyBsonDocument.cs:
MongoDB.Bson/ObjectModel/RawBsonDocument.cs:
* Set AllowDuplicateNames to true since raw BSON always might have duplicate names
@BorisDog BorisDog merged commit f63daea into mongodb:master Mar 13, 2024
@BorisDog BorisDog deleted the csharp2353 branch March 13, 2024 16:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants