Namespace:
Extreme.Mathematics
Assembly:
Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.1
public static Slice ToSlice(
this Range range,
int length
)
<ExtensionAttribute>
Public Shared Function ToSlice (
range As Range,
length As Integer
) As Slice
public:
[ExtensionAttribute]
static Slice ToSlice(
Range range,
int length
)
[<ExtensionAttribute>]
static member ToSlice :
range : Range *
length : int -> Slice
Parameters
- range
- Type: SystemRange
The range to convert. - length
- Type: SystemInt32
The length of the dimension the range
applies to.
Return Value
Type:
SliceThe 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).
Reference