Constructors
-
Array
Segment`1(`0[]) Initializes a new instance of the ArraySegment`1 structure that delimits all the elements in the specified array. -
Array
Segment`1(`0[], Initializes a new instance of the ArraySegment`1 structure that delimits the specified range of the elements in the specified array.Int32, Int32)
Methods
-
Copy
To(Array Copies the contents of this instance into the specified destination array segment of the same type T.Segment<`0>) -
Copy
To(`0[]) Copies the contents of this instance into the specified destination array of the same type T. -
Copy
To(`0[], Copies the contents of this instance into the specified destination array of the same type T, starting at the specified destination index.Int32) -
Equals(Array
Segment<`0>) Determines whether the specified ArraySegment`1 structure is equal to the current instance. - Equals(Object) Determines whether the specified object is equal to the current instance.
-
Get
Enumerator() -
Get
Hash Returns the hash code for the current instance.Code() - Slice(Int32) Forms a slice out of the current array segment starting at the specified index.
-
Slice(Int32,
Int32) -
To
Array() Copies the contents of this array segment into a new array. -
op_Equality(Array
Segment<`0>, Indicates whether two ArraySegment`1 structures are equal.Array Segment<`0>) -
op_Implicit(`0[]):Array
Segment<`0> -
op_Inequality(Array
Segment<`0>, Indicates whether two ArraySegment`1 structures are unequal.Array Segment<`0>)
Properties
- Array Gets the original array containing the range of elements that the array segment delimits.
- Count Gets the number of elements in the range delimited by the array segment.
- Empty Represents the empty array segment. This field is read-only.
- Item
- Offset Gets the position of the first element in the range delimited by the array segment, relative to the start of the original array.
-
System.
Collections. Generic. ICollection<T>. Is Read Only -
System.
Collections. Generic. IList<T>. Item -
System.
Collections. Generic. IRead Only List<T>. Item