C# Class Bigio.Common.Classes.Range

Range is object containes information about some area inside any array. It consists of index of start element and count of element.
Show file Open project: 80LevelElf/Bigio

Public Properties

Property Type Description
Count int
Index int

Public Methods

Method Description
Divide ( int partCount ) : IEnumerable

Divide current range into almost equal inner ranges.

Range ( int index, int count ) : System

Create new instance of Range with specified data.

Method Details

Divide() public method

Divide current range into almost equal inner ranges.
public Divide ( int partCount ) : IEnumerable
partCount int Count of parts to divide
return IEnumerable

Range() public method

Create new instance of Range with specified data.
public Range ( int index, int count ) : System
index int Index of start element of range.
count int Count of elements in range.
return System

Property Details

Count public property

Count of elements in range.
public int Count
return int

Index public property

Index of start element of range.
public int Index
return int