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