1 write to _count
System.Linq (1)
System\Linq\Repeat.cs (1)
39_count = count;
14 references to _count
System.Linq (14)
System\Linq\Repeat.cs (2)
44return new RepeatIterator<TResult>(_current, _count); 62if (sent >= 0 && sent != _count)
System\Linq\Repeat.SpeedOpt.cs (12)
15TResult[] array = new TResult[_count]; 26List<TResult> list = new List<TResult>(_count); 27SetCountAndGetSpan(list, _count).Fill(_current); 32public override int GetCount(bool onlyIfCheap) => _count; 34public int Count => _count; 40if (count >= _count) 45return new RepeatIterator<TResult>(_current, _count - count); 52if (count >= _count) 62if ((uint)index < (uint)_count) 86Debug.Assert(_count > 0); 93array.AsSpan(arrayIndex, _count).Fill(_current); 99if ((uint)index >= (uint)_count)