-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
[BUG] Explicit interface implementation issue #1682
Comments
Yes, please provide the DLL. Seems like there is something missing in the metadata tables. Thank you! |
I thank you, you sir are so great. at |
Thank you very much! It's just like I suspected: There is no info in the |
@siegfriedpammer I think you can do more thing, like check it by Interface, Ixxx has |
See an reproduce for this, and it can be generated with roslyn.
Not sure if there is any document for this, but if those generated methods is removed manually: //In assembly1
public class ClassA1A : ClassA2A, IA
{
}
public class ClassA1B : ClassA1C, IA
{
}
public class ClassA1C : ClassA1D
{
public new int A { get; set; } = 1;
}
public class ClassA1D : ClassA1E
{
public new void C() { Console.WriteLine("ClassA1D"); }
}
public class ClassA1E : IA
{
public int A { get; set; }
public event Action B;//also for events
public void C() { Console.WriteLine("ClassA1E"); }//normal methods still works
}
//In any assembly
public interface IA
{
int A { get; set; }
event Action B;
void C();
}
//In another assembly2
public class ClassA2A
{
public int A { get; set; }
public event Action B;
public void C() { Console.WriteLine("A2A"); }
} Updated: public interface IC
{
int MMM(in int _);
}
public class C : IC
{
public int MMM(in int x) => x;
} |
Thank you very much for providing these reproduction steps! |
See Roslyn source code for the rules used by the C# compiler: |
Version: 5.0.0.4776-preview1
If you need this dll, I can provide.
The text was updated successfully, but these errors were encountered: