| Range(Int32, Int32) Constructor |
Constructs a Range instance with the given starting index and ending index, using a
default stride of 1.
Namespace: CenterSpace.NMath.CoreAssembly: NMath (in NMath.dll) Version: 7.4
Syntax public Range(
int start,
int end
)
Public Sub New (
start As Integer,
end As Integer
)
public:
Range(
int start,
int end
)
new :
start : int *
end : int -> Range
Parameters
- start Int32
- The starting index.
- end Int32
- The ending index.
Exceptions Exception | Condition |
---|
InvalidArgumentException |
Thrown if the start is negative, the end is
negative or the start is greater than the end.
|
Remarks
To indicate an ending index equal to the maximum legal index in the underlying
data, use Range(int, Position).
Example
For example, in a vector of 10 elements, Range(0,4) could be
used to view or manipulate the first 5 elements.
See Also