Skip to content

Remove InternalsVisibleTo from System.Collections.Immutable. - #107872

Merged
eiriktsarpalis merged 9 commits into
dotnet:mainfrom
eiriktsarpalis:remove-sci-svt
Sep 18, 2024
Merged

Remove InternalsVisibleTo from System.Collections.Immutable.#107872
eiriktsarpalis merged 9 commits into
dotnet:mainfrom
eiriktsarpalis:remove-sci-svt

Conversation

@eiriktsarpalis

Copy link
Copy Markdown
Member

Fix #107848.

@eiriktsarpalis eiriktsarpalis added this to the 10.0.0 milestone Sep 16, 2024
@eiriktsarpalis eiriktsarpalis self-assigned this Sep 16, 2024
<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
Copy Markdown
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.

@stephentoub stephentoub left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks!

@stephentoub

stephentoub commented Sep 16, 2024

Copy link
Copy Markdown
Member

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
Copy Markdown
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
@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.
@github-actions github-actions Bot locked and limited conversation to collaborators Oct 19, 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.

Remove IVT from System.Collections.Immutable

2 participants