@@ -473,17 +473,19 @@ public static int LastIndexOf<T>([NotNull] this T[] array, T value, int startInd
473473
474474 /// <summary>Reverses the sequence of the elements in the entire one-dimensional <see cref="Array" />.</summary>
475475 /// <param name="array">The one-dimensional <see cref="Array" /> to reverse.</param>
476+ /// <typeparam name="T">The type of the elements of the array.</typeparam>
476477 /// <exception cref="ArgumentNullException">
477478 /// <paramref name="array" /> is null. </exception>
478479 /// <exception cref="RankException">
479480 /// <paramref name="array" /> is multidimensional. </exception>
480481 /// <filterpriority>1</filterpriority>
481- public static void Reverse ( [ NotNull ] this Array array ) => Array . Reverse ( array ) ;
482+ public static void Reverse < T > ( [ NotNull ] this T [ ] array ) => Array . Reverse ( array ) ;
482483
483484 /// <summary>Reverses the sequence of the elements in a range of elements in the one-dimensional <see cref="Array" />.</summary>
484485 /// <param name="array">The one-dimensional <see cref="Array" /> to reverse.</param>
485486 /// <param name="index">The starting index of the section to reverse.</param>
486487 /// <param name="length">The number of elements in the section to reverse.</param>
488+ /// <typeparam name="T">The type of the elements of the array.</typeparam>
487489 /// <exception cref="ArgumentNullException">
488490 /// <paramref name="array" /> is null.</exception>
489491 /// <exception cref="RankException">
@@ -493,7 +495,7 @@ public static int LastIndexOf<T>([NotNull] this T[] array, T value, int startInd
493495 /// <exception cref="ArgumentException">
494496 /// <paramref name="index" /> and <paramref name="length" /> do not specify a valid range in <paramref name="array" />.</exception>
495497 /// <filterpriority>1</filterpriority>
496- public static void Reverse ( [ NotNull ] this Array array , int index , int length ) => Array . Reverse ( array , index , length ) ;
498+ public static void Reverse < T > ( [ NotNull ] this T [ ] array , int index , int length ) => Array . Reverse ( array , index , length ) ;
497499
498500 #region Sort
499501 /// <summary>Sorts the elements in an entire <see cref="Array" /> using the <see cref="IComparable{T}" /> generic interface implementation of each element of the <see cref="Array" />.</summary>
0 commit comments