Index(Int32, Boolean) Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Construct an Index using a value and indicating if the index is from the start or from the end.
public Index(int value, bool fromEnd = false);
new Index : int * bool -> Index
Public Sub New (value As Integer, Optional fromEnd As Boolean = false)
Parameters
- value
- Int32
The index value. it has to be zero or positive number.
- fromEnd
- Boolean
Indicating if the index is from the start or from the end.
Remarks
If the Index constructed from the end, index value 1 means pointing at the last element and index value 0 means pointing at beyond last element.