You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 13, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Nov 13, 2026. It is now read-only.
Accessibility not respected by the interface resolution algorithm #1986
B.f is protected and we shouldn't consider it as implementing the interface.
usingSystem;interfaceI{intf();}classA{publicintf(){Console.WriteLine("Correct -> Should be in A.f()");return100;}}classB:A,I{newprotectedvirtualintf(){Console.WriteLine("Incorrect -> Shouldnt be in B.f()");return1;}staticintMain(){Bb=newB();Ii=b;returni.f();}}
changed the title [-]Method declaration order not respected in interface method resolution[/-][+]Accessibility not respected by the interface resolution algorithm[/+]on Jan 18, 2018
Activity
MichalStrehovsky commentedon Oct 6, 2016
Cc @hoyMS
[-]Method declaration order not respected in interface method resolution[/-][+]Accessibility not respected by the interface resolution algorithm[/+]Consider method accessibility in interface resolution
Consider method accessibility in interface resolution (#81409)