Class IntRange
Class for representing sequence of elements
public class IntRange
- Inheritance
-
IntRange
- Inherited Members
Constructors
IntRange(int, int)
Initializes a new instance of the IntRange class.
public IntRange(int start, int count)
Parameters
IntRange(int, int, int)
Initializes a new instance of the IntRange class.
public IntRange(int start, int count, int delta)
Parameters
IntRange(int[])
Initializes a new instance of the IntRange class.
public IntRange(int[] range)
Parameters
range
int[]The range.
Properties
Range
Gets or sets the range.
public int[] Range { get; set; }
Property Value
- int[]
The range.
Methods
GetArrayOneItemFromIndex(int)
Returns one item array from specified index
public int[] GetArrayOneItemFromIndex(int index)
Parameters
index
intThe range index.
Returns
Exceptions
- ArgumentException
Index is out of range
GetRange(int, int, int)
Gets the count range of int elements starting at start
public static IEnumerable<int> GetRange(int start, int count, int delta)
Parameters
Returns
- IEnumerable<int>
Array of items
Exceptions
- ArgumentException
Count can not be lover than 1 or {D255958A-8513-4226-94B9-080D98F904A1}Start page can not be lover than 0