示例#1
0
 internal Enumerator(PooledRefList <T> list)
 {
     _list    = list;
     _index   = 0;
     _version = list._version;
     _current = default;
 }
示例#2
0
        public bool MoveNext()
        {
            PooledRefList <T> localList = _list;

            if (_version == localList._version && (uint)_index < (uint)localList._size)
            {
                _current = localList._items[_index];
                _index++;
                return(true);
            }
            return(MoveNextRare());
        }