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

Implement interfaces in the non-generic enumerator base #82923

Merged
merged 2 commits into from
Mar 3, 2023

Conversation

MichalStrehovsky
Copy link
Member

...so that the interface implementation details go to the non-generic dispatch map instead of the individual specialized dispatch maps. Saves 3.5 kB on BasicMinimalApi.

Would be nice if we could do that for IEnumerable on SZGenericArrayEnumeratorBase but there's no way to express that in C# (we could express that in IL).

...so that the interface implementation details go to the non-generic dispatch map.

Saves 1.5 kB on BasicMinimalApi.
@dotnet-issue-labeler
Copy link

I couldn't figure out the best area label to add to this PR. If you have write-permissions please help me learn by adding exactly one area label.

@ghost ghost assigned MichalStrehovsky Mar 3, 2023
@stephentoub stephentoub merged commit d2f87f4 into dotnet:main Mar 3, 2023
@MichalStrehovsky MichalStrehovsky deleted the enumintf branch March 7, 2023 00:53
@ghost ghost locked as resolved and limited conversation to collaborators Apr 6, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants