ArraySlice<T>(Int32, Boolean) Constructor

Constructs a new array slice.

Definition

Namespace: Extreme.Collections
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
public ArraySlice(
	int length,
	bool initializeToZero = true
)

Parameters

length  Int32
The capacity of the slice.
initializeToZero  Boolean  (Optional)
Indicates whether the elements should be explicitly set to zero.

Remarks

Use this constructor to create an array slice that wraps a standard .NET array of the specified length. The offset is zero and the stride is 1.

See Also