11 public static implicit operator object[] (Test test)
13 return new object[1] { test };
16 public static int IndexOf (Test array, object value)
18 // The non-generic function is better than the generic one whose type
19 // arguments have been infered.
20 return IndexOf (array, value, 0, array.Length);
23 public static int IndexOf (Test array, object value, int startIndex, int count)
28 public static int IndexOf<T> (T[] array, T value, int startIndex, int count)
38 Test test = new Test ();
39 int result = Test.IndexOf (test, test);