[Modify] Edit it

This commit is contained in:
sta 2019-06-15 20:45:37 +09:00
parent 2c15560779
commit 591033f390

View File

@ -1643,26 +1643,52 @@ 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">
/// A <see cref="long"/> that represents the zero-based starting position of /// A <see cref="long"/> 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">
/// A <see cref="long"/> that represents the number of elements to retrieve. /// A <see cref="long"/> 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 less than zero.
/// </para>
/// <para>
/// -or-
/// </para>
/// <para>
/// <paramref name="startIndex"/> is greater than the end of 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, long startIndex, long length) public static T[] SubArray<T> (this T[] array, long startIndex, long length)
{ {
if (array == null) if (array == null)