1 write to _appendCount
System.Linq (1)
System\Linq\AppendPrepend.cs (1)
188_appendCount = appendCount;
9 references to _appendCount
System.Linq (9)
System\Linq\AppendPrepend.cs (4)
191private protected override Iterator<TSource> Clone() => new AppendPrependN<TSource>(_source, _prepended, _appended, _prependCount, _appendCount); 223_enumerator = ((IEnumerable<TSource>)_appended.ToArray(_appendCount)).GetEnumerator(); 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)]; 210TSource[] result = builder.ToArray(_appendCount); 266_appended?.FillReversed(SetCountAndGetSpan(list, list.Count + _appendCount)); 276return count == -1 ? -1 : count + _appendCount + _prependCount; 279return !onlyIfCheap || _source is ICollection<TSource> ? _source.Count() + _appendCount + _prependCount : -1;