2 using System.Runtime.CompilerServices;
21 public int this [int a] {
28 public long this [double a] {
37 [IndexerName ("Whatever")]
38 new public long this [double a] {
44 [IndexerName ("Whatever")]
45 public float this [long a, int b] {
51 public int InstanceTest ()
55 Console.WriteLine ("INSTANCE TEST");
57 if (this [index] != 4)
59 if (base [index] != 3)
65 public static int Test ()
71 Console.WriteLine (z [1]);
72 Console.WriteLine (y [2]);
73 Console.WriteLine (x [3]);
84 Console.WriteLine (z [index]);
85 Console.WriteLine (y [index]);
92 int retval = z.InstanceTest ();
111 public static int Main ()
113 int result = Test ();
115 Console.WriteLine ("RESULT: " + result);
123 [IndexerName("Monkey")]
124 public int this [int value] {
133 public long this [long a, int value] {
142 public int this [int value] {
151 public long this [long a, int value] {