• Willem@kutsuya.dev
    link
    fedilink
    arrow-up
    0
    ·
    2 months ago

    On that last note, can’t you use the explicit interface implementation in C#?

    e.g.

    public class SampleClass : IControl, ISurface
    {
        void IControl.Paint()
        {
            System.Console.WriteLine("IControl.Paint");
        }
        void ISurface.Paint()
        {
            System.Console.WriteLine("ISurface.Paint");
        }
    }