Implemented interface members:
1 write to Count
Microsoft.CodeAnalysis.Threading.Package (1)
src\Dependencies\Collections\TemporaryArray`1.cs (1)
241_builder.Count--;
44 references to Count
Microsoft.CodeAnalysis.Threading.Package (44)
src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (4)
834var result = (builder.Count == array.Length) ? array : builder.ToImmutable(); 875if (comparer != null && builder.Count > 1) 1191Debug.Assert(builder.Count > 1); 1262Debug.Assert(builder.Count == count);
src\Dependencies\Collections\TemporaryArray`1.cs (1)
106public readonly int Count => _builder?.Count ?? _count;
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];
src\Dependencies\PooledObjects\ArrayBuilder.Enumerator.cs (1)
36return _index < _builder.Count;