4 using System.Collections;
8 public interface IIndexer { object this[int index] { get; set; } }
10 public class Test : IIndexer
13 object IIndexer.this[int index] {
14 get { return InnerList[index]; }
15 set { InnerList[index] = value; }
18 public static void Main() {
19 if (Attribute.GetCustomAttribute(
21 typeof(System.Reflection.DefaultMemberAttribute)) != null)
22 throw new Exception("Class 'Test' has a DefaultMemberAttribute");