using System; public interface IXList { object this[int i] { get; set; } object getThis(int i) ; } public class Indexers : IXList { private int this[int i] { get { return 42; } } public object getThis(int i) { return 42; } object IXList.this[int i] { get { return 42; } set { } } object IXList.getThis(int i) { return 42; } public static void Main() { Indexers x=new Indexers(); #if !D Console.WriteLine(x[0]); #endif Console.WriteLine(x.getThis(42)); } }