ArraySlice<T>(T[], Int32) Constructor

Constructs a new array slice with unit stride.

Definition

Namespace: Extreme.Collections
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
public ArraySlice(
	T[] values,
	int offset
)

Parameters

values  T[]
The storage array.
offset  Int32
The offset of the first element in the storage array.

Remarks

The values array is re-used. Modifying elements in the array slice will modify the elements in the original array. Conversely, if elements in the original array that correspond to elements in the array slice are modified, the elements of the array slice are modified as well.

See Also