[Modify] Edit it

This commit is contained in:
sta 2019-06-10 22:23:47 +09:00
parent ef2dec992c
commit 1839fd2b27

View File

@ -1562,26 +1562,46 @@ namespace WebSocketSharp
} }
/// <summary> /// <summary>
/// Retrieves a sub-array from the specified <paramref name="array"/>. A sub-array starts at /// Retrieves a sub-array from the specified array. A sub-array starts at
/// the specified element position in <paramref name="array"/>. /// the specified index in the array.
/// </summary> /// </summary>
/// <returns> /// <returns>
/// An array of T that receives a sub-array, or an empty array of T if any problems with /// An array of T that receives a sub-array.
/// the parameters.
/// </returns> /// </returns>
/// <param name="array"> /// <param name="array">
/// An array of T from which to retrieve a sub-array. /// An array of T from which to retrieve a sub-array.
/// </param> /// </param>
/// <param name="startIndex"> /// <param name="startIndex">
/// An <see cref="int"/> that represents the zero-based starting position of /// An <see cref="int"/> that represents the zero-based index in the array
/// a sub-array in <paramref name="array"/>. /// at which retrieving starts.
/// </param> /// </param>
/// <param name="length"> /// <param name="length">
/// An <see cref="int"/> that represents the number of elements to retrieve. /// An <see cref="int"/> that represents the number of elements to retrieve.
/// </param> /// </param>
/// <typeparam name="T"> /// <typeparam name="T">
/// The type of elements in <paramref name="array"/>. /// The type of elements in the array.
/// </typeparam> /// </typeparam>
/// <exception cref="ArgumentNullException">
/// <paramref name="array"/> is <see langword="null"/>.
/// </exception>
/// <exception cref="ArgumentOutOfRangeException">
/// <para>
/// <paramref name="startIndex"/> is out of range for the array.
/// </para>
/// <para>
/// -or-
/// </para>
/// <para>
/// <paramref name="length"/> is less than zero.
/// </para>
/// <para>
/// -or-
/// </para>
/// <para>
/// <paramref name="length"/> is greater than the number of elements from
/// <paramref name="startIndex"/> to the end of the array.
/// </para>
/// </exception>
public static T[] SubArray<T> (this T[] array, int startIndex, int length) public static T[] SubArray<T> (this T[] array, int startIndex, int length)
{ {
if (array == null) if (array == null)