1 write to _prependCount
System.Linq (1)
System\Linq\AppendPrepend.cs (1)
187_prependCount = prependCount;
8 references to _prependCount
System.Linq (8)
System\Linq\AppendPrepend.cs (3)
191private protected override Iterator<TSource> Clone() => new AppendPrependN<TSource>(_source, _prepended, _appended, _prependCount, _appendCount); 237return new AppendPrependN<TSource>(_source, _prepended, appended, _prependCount, _appendCount + 1); 243return new AppendPrependN<TSource>(_source, prepended, _appended, _prependCount + 1, _appendCount);
System\Linq\AppendPrepend.SpeedOpt.cs (5)
189var result = new TSource[checked(_prependCount + c.Count + _appendCount)]; 192c.CopyTo(result, _prependCount); 262_prepended?.Fill(SetCountAndGetSpan(list, _prependCount)); 276return count == -1 ? -1 : count + _appendCount + _prependCount; 279return !onlyIfCheap || _source is ICollection<TSource> ? _source.Count() + _appendCount + _prependCount : -1;