-
Notifications
You must be signed in to change notification settings - Fork 1.3k
CSHARP-2096: Make EnumRepresentationConvention also affect collections of Enums #1574
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
ec4f48e
rebase 1
papafe 91daba7
Small fix plus added dictionary test
papafe cdce373
Added nested tests
papafe f807853
Small improvement
papafe d7b1739
Corrections
papafe 6fd0000
Corrections according to PR
papafe 5378c0c
Small fix
papafe 6b81730
Corrected calls
papafe db63623
Corrections
papafe 48c71a9
Added test
papafe faf6095
Various corrections
papafe 9f94025
Variable name change
papafe e86f3fa
Removed unnecessary
papafe 2d11321
Corrected grammar
papafe 5234bdb
Grammar corrections
papafe 1f0041f
Corrections
papafe 38d35f4
Correction
papafe 0d117d0
Simplified reconfigure serializer method and final corrections
papafe c2711c3
Fixed nullable check
papafe File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 38 additions & 0 deletions
38
src/MongoDB.Bson/Serialization/IMultipleChildSerializersConfigurable.cs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
/* Copyright 2010-present MongoDB Inc. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
namespace MongoDB.Bson.Serialization | ||
{ | ||
/// <summary> | ||
/// Represents a serializer that has multiple child serializers that configuration attributes can be forwarded to. | ||
/// </summary> | ||
public interface IMultipleChildSerializersConfigurable | ||
{ | ||
/// <summary> | ||
/// Gets the child serializers. | ||
/// </summary> | ||
/// <value> | ||
/// The child serializers. | ||
/// </value> | ||
IBsonSerializer[] ChildSerializers { get; } | ||
|
||
/// <summary> | ||
/// Returns a serializer that has been reconfigured with the specified child serializers. | ||
/// </summary> | ||
/// <param name="childSerializers">The child serializers.</param> | ||
/// <returns>The reconfigured serializer.</returns> | ||
IBsonSerializer WithChildSerializers(IBsonSerializer[] childSerializers); | ||
} | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Duplicate line
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed