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

Remove InternalsVisibleTo from System.Collections.Immutable. #107872

Merged
merged 9 commits into from
Sep 18, 2024

Conversation

eiriktsarpalis
Copy link
Member

Fix #107848.

<Compile Include="..\src\System\Collections\Frozen\String\Hashing.cs" Link="System\Collections\Frozen\String\Hashing.cs" />
<Compile Include="..\src\System\Collections\Frozen\String\KeyAnalyzer.cs" Link="System\Collections\Frozen\String\KeyAnalyzer.cs" />
<Compile Include="..\src\System\Collections\Immutable\IBinaryTree.cs" Link="System\Collections\Immutable\IBinaryTree.cs" />
<Compile Include="..\src\Validation\Requires.cs" Link="Validation\Requires.cs" />
Copy link
Member

Choose a reason for hiding this comment

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

We should probably follow up to separate these out further, but for now this PR is definitely a good step in the right direction.

Copy link
Member

@stephentoub stephentoub left a comment

Choose a reason for hiding this comment

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

Thanks!

@stephentoub
Copy link
Member

stephentoub commented Sep 16, 2024

Out of curiosity, I tried building S.C.I with and without this PR. This reduces its size on disk by ~5%.

@eiriktsarpalis
Copy link
Member Author

@vitek-karas could you suggest any workarounds for enabling private field access in blazor-wasm? My change in d3cf8f9 doesn't seem to do it.

@eiriktsarpalis eiriktsarpalis merged commit 9eb48cd into dotnet:main Sep 18, 2024
81 of 85 checks passed
@eiriktsarpalis eiriktsarpalis deleted the remove-sci-svt branch September 18, 2024 21:16
sirntar pushed a commit to sirntar/runtime that referenced this pull request Sep 30, 2024
…107872)

* Remove InternalsVisibleTo from System.Collections.Immutable.

* Remove a few unneeded internal interfaces.

* Replace IOrderedCollection<T> with IReadOnlyList<T>

* Remove empty folder.

* Avoid trimming necessary reflection metadata.

* Do not look up IBinaryTree interface.

* Revert "Avoid trimming necessary reflection metadata."

This reverts commit d3cf8f9.

* Remove IBinaryTree interface.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove IVT from System.Collections.Immutable
2 participants