internal Enumerator(UncheckedList <T> list) { this.list = list; index = 0; version = list._version; current = default(T); }
public UncheckedList <T> GetRange(int index, int count) { UncheckedList <T> list = new UncheckedList <T>(count); Array.Copy(_items, index, list._items, 0, count); list._size = count; return(list); }
public UncheckedList <TOutput> ConvertAll <TOutput>(Converter <T, TOutput> converter) { UncheckedList <TOutput> list = new UncheckedList <TOutput>(_size); for (int i = 0; i < _size; i++) { list._items[i] = converter(_items[i]); } list._size = _size; return(list); }
public bool MoveNext() { UncheckedList <T> localUncheckedList = list; if (version == localUncheckedList._version && ((uint)index < (uint)localUncheckedList._size)) { current = localUncheckedList._items[index]; index++; return(true); } return(MoveNextRare()); }
public UncheckedList <T> FindAll(Predicate <T> match) { UncheckedList <T> list = new UncheckedList <T>(); for (int i = 0; i < _size; i++) { if (match(_items[i])) { list.Add(_items[i]); } } return(list); }