src\Dependencies\PooledObjects\ArrayBuilder.cs (38)
43var result = new T[_builder.Count];
89if (Count == 0)
93else if (_builder.Capacity == Count)
148=> Count == 0;
215=> FindIndex(0, this.Count, match);
218=> FindIndex(startIndex, this.Count - startIndex, match);
235=> FindIndex(0, Count, match, arg);
238=> FindIndex(startIndex, Count - startIndex, match, arg);
334if (this.Count <= 1)
359=> Count == 0 ? default : Last();
376if (Count == 0)
390if (Count == 0)
395var tmp = ArrayBuilder<U>.GetInstance(Count);
419if (Count == 0)
423else if (_builder.Capacity == Count)
472if (this.Count != 0)
493Debug.Assert(builder.Count == 0);
549if (this.Count == 1)
557if (this.Count == 0)
564var accumulator = new Dictionary<K, ArrayBuilder<T>>(Count, comparer);
565for (var i = 0; i < Count; i++)
610Debug.Assert(start + length <= items.Count);
669Debug.Assert(limit <= Count);
681EnsureCapacity(Count + count);
694for (var i = 0; i < Count; i++)
709if (Count <= 1)
719for (int i = 1; i < Count; i++)
733var result = ArrayBuilder<S>.GetInstance(Count);
805switch (Count)
823var builder = ArrayBuilder<TResult>.GetInstance(Count);
843switch (Count)
861var builder = ArrayBuilder<TResult>.GetInstance(Count);
881switch (Count)
899var builder = ArrayBuilder<TResult>.GetInstance(Count);
902builder.Add(map(item, builder.Count, arg));
918RemoveAt(Count - 1);
924if (Count > 0)
935=> this[Count - 1];