Can a C# class call an interface's default interface method from its own implementation?
问题 If I have a default interface method like this: public interface IGreeter { void SayHello(string name) => System.Console.WriteLine($"Hello {name}!"); } Can I have my concrete implementation call that default method? public class HappyGreeter : IGreeter { public void SayHello(string name) { // what can I put here to call the default method? System.Console.WriteLine("I hope you're doing great!!"); } } So that calling: var greeter = new HappyGreeter() as IGreeter; greeter.SayHello("Pippy");