Skip to content
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

Replace the bespoke OrderedDictionary with a backport of System.Collections.Generic.OrderedDictionary #105016

Merged
merged 2 commits into from
Jul 18, 2024

Conversation

eiriktsarpalis
Copy link
Member

Since the introduction of System.Collection.Generic.OrderedDictionary in .NET 9, JsonObject has been using two separate implementations of ordered dictionary: the built-in collection for net9.0 and a bespoke implementation for older targets. This PR removes the bespoke implementation and backports the new collection type to the older targets.

@@ -6,6 +6,7 @@
<IsPartialFacadeAssembly>true</IsPartialFacadeAssembly>
<ContractTypesPartiallyMoved>true</ContractTypesPartiallyMoved>
<UseCompilerGeneratedDocXmlFile>false</UseCompilerGeneratedDocXmlFile>
<DefineConstants>SYSTEM_COLLECTIONS;$(DefineConstants)</DefineConstants>
Copy link
Member Author

Choose a reason for hiding this comment

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

Constant follows naming convention of SYSTEM_PRIVATE_CORELIB

Copy link
Contributor

Tagging subscribers to this area: @dotnet/area-system-text-json, @gregsdennis
See info in area-owners.md if you want to be subscribed.

@eiriktsarpalis eiriktsarpalis merged commit a5c0dec into dotnet:main Jul 18, 2024
144 of 147 checks passed
@eiriktsarpalis eiriktsarpalis deleted the replace-ordereddictionary branch July 18, 2024 16:46
@github-actions github-actions bot locked and limited conversation to collaborators Aug 18, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants