Repository navigation
Clarify member resolution hierarchy between extension methods and default interface methods (Fixes #56626) - #56643
Open
Manish-1kumar wants to merge 2 commits into
Conversation
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
The documentation inaccurately limits interface member lookup to the exact interface and implies namespace imports make extension methods available regardless of accessibility.
2 open issues
What changed in this PR
Updates the C# mixins tutorial to address #56626 by explaining how compile-time member lookup differs from runtime dispatch for default interface methods.
Changes:
- Expands the extension-method discussion into a numbered explanation of member precedence.
- Explains interface-typed calls and class-specific implementations.
- Contrasts extension-method availability with default interface behavior and overrides.
| File | Description |
|---|---|
docs/csharp/advanced-topics/interface-implementation/mixins-with-default-interface-methods.md |
Revises “Limitations of extensions” to explain member lookup and interface dispatch. |
Review effort: Balanced
…ault interface methods - Reframe member resolution around compiler overload resolution rules - Clarify member search precedence: class instance members, interface reference access, and extension methods - Explain virtual method dispatch for default interface implementations Fixes dotnet#56626
Manish-1kumar
force-pushed
the
users/manish/issue-56626-mixin-overload-resolution
branch
from
November 30, 2026 17:40
4503e4a to
634372f
Compare
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.

Summary
This pull request addresses #56626 by reframing the explanation under Limitations of extensions in the mixins tutorial around compiler overload resolution rules and member search precedence, as suggested by maintainer @BillWagner.
Changes Made
1.).Fixes #56626
Internal previews
Build report