5 public static int IndexOf (Array array
, object value)
7 // This is picking the non-generic version.
8 return IndexOf (array
, value, 0, array
.Length
);
11 public static int IndexOf (Array array
, object value, int startIndex
, int count
)
16 public static int IndexOf
<T
> (T
[] array
, T
value, int startIndex
, int count
)
24 public static int Main ()
26 Test test
= new Test ();
27 string[] array
= new string [] { "Hello" }
;
29 int result
= Test
.IndexOf (array
, array
);
33 string hello
= "Hello World";
34 // This is picking the generic version.
35 result
= Test
.IndexOf (array
, hello
, 1, 2);