struct ArraySegment<T>

in global :: System

Delimits a section of a one-dimensional array.

  • T The type of the elements in the array segment.

public T[] Array { get; }

Gets the original array containing the range of elements that the array segment delimits.

  • Returns The original array that was passed to the constructor, and that contains the range delimited by the .

public int Count { get; }

Gets the number of elements in the range delimited by the array segment.

  • Returns The number of elements in the range delimited by the .

public static ArraySegment<T> Empty { get; }

No summary.

public bool Equals( object obj )

Determines whether the specified object is equal to the current instance.

  • obj The object to be compared with the current instance.
  • Returns if the specified object is a structure and is equal to the current instance; otherwise, .

public int Offset { get; }

Gets the position of the first element in the range delimited by the array segment, relative to the start of the original array.

  • Returns The position of the first element in the range delimited by the , relative to the start of the original array.

public ArraySegment<T> Slice( int index )

No summary.

public ArraySegment<T> Slice( int index, int count )

No summary.

public Type GetType( )

😔 No documentation found.

public string ToString( )

😔 No documentation found.

public static ArraySegment<T> op_Implicit( T[] array )

😔 No documentation found.

public static bool op_Inequality( ArraySegment<T> a, ArraySegment<T> b )

😔 No documentation found.

public static bool op_Equality( ArraySegment<T> a, ArraySegment<T> b )

😔 No documentation found.

public T[] ToArray( )

😔 No documentation found.

public ArraySegment<T>( T[] array, int offset, int count )

😔 No documentation found.

public ArraySegment<T>( T[] array )

😔 No documentation found.

public void CopyTo( ArraySegment<T> destination )

😔 No documentation found.

public void CopyTo( T[] destination, int destinationIndex )

😔 No documentation found.

public void CopyTo( T[] destination )

😔 No documentation found.

public int GetHashCode( )

😔 No documentation found.

public ArraySegment<T>.Enumerator GetEnumerator( )

😔 No documentation found.

public bool Equals( ArraySegment<T> obj )

😔 No documentation found.

public T Item { get; set; }

😔 No documentation found.