示例#1
0
            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);
            }
示例#2
0
 public bool TryGetSector(SectorIndex sectorIndex, out Sector sector)
 {
     sector = _Partition.GetSectorFromIndex(sectorIndex, false);
     return(sector != null);
 }