ArrayMath.ToSlice Method

Converts a Range to a Slice.

Definition

Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
public static Slice ToSlice(
	this Range range,
	int length
)

Parameters

range  Range
The range to convert.
length  Int32
The length of the dimension the range applies to.

Return Value

Slice
The equivalent of range as a Slice.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Range. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

See Also