@@ -8,36 +8,38 @@ public static class ArrayViewExtensions
88 /// <summary>
99 /// Creates a new <see cref="ArrayView{T}"/> over an array.
1010 /// </summary>
11+ /// <typeparam name="T">The type of elements in the array.</typeparam>
1112 /// <param name="value">The target array.</param>
1213 /// <returns>
13- /// An <see cref="ArrayView{T}"/> representing the array.
14+ /// An <see cref="ArrayView{T}"/> representing the specified array.
1415 /// </returns>
15- [ MethodImpl ( MethodImplOptions . AggressiveInlining ) ]
1616 public static ArrayView < T > AsView < T > ( this T [ ] ? value ) =>
1717 new ( value ?? [ ] ) ;
1818
1919 /// <summary>
20- /// Creates a new <see cref="ArrayView{T}"/> over a portion of the target array from a specified position to the end of the array.
20+ /// Creates a new <see cref="ArrayView{T}"/> over a portion of the specified array,
21+ /// starting at a specified position to the end of the array.
2122 /// </summary>
22- /// <param name="value">The target array.</param>
23- /// <param name="index">The index at which to begin the array view.</param>
23+ /// <typeparam name="T">The type of elements in the array.</typeparam>
24+ /// <param name="value">The array to create a view over.</param>
25+ /// <param name="index">The zero-based starting position of the view in the array.</param>
2426 /// <returns>
25- /// An <see cref="ArrayView{T}"/> representing the array.
27+ /// An <see cref="ArrayView{T}"/> representing the specified portion of the array.
2628 /// </returns>
27- [ MethodImpl ( MethodImplOptions . AggressiveInlining ) ]
2829 public static ArrayView < T > AsView < T > ( this T [ ] ? value , int index ) =>
2930 new ( value ?? [ ] , index ) ;
3031
3132 /// <summary>
32- /// Creates a new <see cref="ArrayView{T}"/> over a portion of the target array from a specified position for a specified number of elements.
33+ /// Creates a new <see cref="ArrayView{T}"/> over a portion of the specified array
34+ /// starting at a specified position for a specified number of elements.
3335 /// </summary>
34- /// <param name="value">The target array.</param>
35- /// <param name="index">The index at which to begin the array view.</param>
36- /// <param name="count">The number of items in the array view.</param>
36+ /// <typeparam name="T">The type of elements in the array.</typeparam>
37+ /// <param name="value">The array to create a view over. Can be null.</param>
38+ /// <param name="index">The zero-based starting position of the view in the array.</param>
39+ /// <param name="count">The number of elements to include in the view.</param>
3740 /// <returns>
38- /// An <see cref="ArrayView{T}"/> representing the array.
41+ /// An <see cref="ArrayView{T}"/> representing the specified portion of the array.
3942 /// </returns>
40- [ MethodImpl ( MethodImplOptions . AggressiveInlining ) ]
4143 public static ArrayView < T > AsView < T > ( this T [ ] ? value , int index , int count ) =>
4244 new ( value ?? [ ] , index , count ) ;
4345
0 commit comments