src\roslyn\src\Dependencies\PooledObjects\ArrayBuilder.cs (37)
48var result = new T[_builder.Count];
94if (Count == 0)
98else if (_builder.Capacity == Count)
153=> Count == 0;
220=> FindIndex(0, this.Count, match);
223=> FindIndex(startIndex, this.Count - startIndex, match);
240=> FindIndex(0, Count, match, arg);
243=> FindIndex(startIndex, Count - startIndex, match, arg);
353if (this.Count <= 1)
378=> Count == 0 ? default : Last();
395if (Count == 0)
409if (Count == 0)
414var result = new U[Count];
438if (Count == 0)
442else if (_builder.Capacity == Count)
491if (this.Count != 0)
521Debug.Assert(builder.Count == 0);
616if (this.Count == 1)
624if (this.Count == 0)
631var accumulator = new Dictionary<K, ArrayBuilder<T>>(Count, comparer);
632for (var i = 0; i < Count; i++)
677Debug.Assert(start + length <= items.Count);
744Debug.Assert(limit <= Count);
756EnsureCapacity(Count + count);
769for (var i = 0; i < Count; i++)
784if (Count <= 1)
794for (int i = 1; i < Count; i++)
808var result = ArrayBuilder<S>.GetInstance(Count);
880switch (Count)
898var result = new TResult[Count];
916switch (Count)
934var result = new TResult[Count];
952switch (Count)
970var result = new TResult[Count];
987RemoveAt(Count - 1);
993if (Count > 0)
1004=> this[Count - 1];
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.InitialContextFinder.cs (1)
157if (buffer.Count > 0)