[corlib] Generic comparers from reference sources
[mono.git] / mcs / class / corlib / System / Array.cs
index b4afbe2eb84bd10203be62dc732b40647bd43a0f..9c263400572cc9681d3fba5d8ad1ce6f5c579a1c 100644 (file)
@@ -3045,7 +3045,7 @@ namespace System
                        if (count < 0 || startIndex < array.GetLowerBound (0) || startIndex - 1 > array.GetUpperBound (0) - count)
                                throw new ArgumentOutOfRangeException ();
 
-                       return EqualityComparer<T>.Default.IndexOf (array, value, startIndex, startIndex + count);
+                       return EqualityComparer<T>.Default.IndexOf (array, value, startIndex, count);
                }
                
                public static int LastIndexOf<T> (T [] array, T value)