ReadUntil() private method

private ReadUntil ( int index ) : int
index int
return int
Exemplo n.º 1
0
        public bool MoveNext()
        {
            _index++;
            int count = _list.ReadUntil(_index + 1);   // read past for delete-node case

            if (count - 1 < _index)
            {
                return(false);
            }
            _valid = (_list[_index] != null);
            return(_valid);
        }
        public bool MoveNext()
        {
            index++;
            int count = list.ReadUntil(index + 1);   // read past for delete-node case

            if (count - 1 < index)
            {
                return(false);
            }
            valid = (list[index] != null);
            return(valid);
        }