public bool MoveNext() { current = null; while (current == null) { x += 1; if (x > br.First) { x = tl.First; y += 1; if (y > br.Second) { current = null; return(false); } } item.First = x; item.Second = y; current = sectors.GetSectorFromIndex(item, create); } return(true); }
public bool TryGetSector(SectorIndex sectorIndex, out Sector sector) { sector = _Partition.GetSectorFromIndex(sectorIndex, false); return(sector != null); }