// Collection of code snippets by Arne Vajhøj // (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) using System; public class MIItrue { public static void Main(String[] args) { I1 x = new C(); x.M(); I2 y = new C(); y.M(); C z = new C(); z.M(); Console.ReadKey(); } } public interface I1 { void M(); } public interface I2 { void M(); } public class C : I1, I2 { /* public void M() { Console.WriteLine("Default M"); } */ void I1.M() { Console.WriteLine("I1.M"); } void I2.M() { Console.WriteLine("I2.M"); } }