Implemented interface members:
25 references to Count
Microsoft.AspNetCore.App.Analyzers (2)
Infrastructure\VirtualChars\AbstractVirtualCharService.cs (2)
176index += result[result.Count - 1].Span.Length; 237if (textLength == result.Count)
Microsoft.Build (4)
Evaluation\LazyItemEvaluator.IncludeOperation.cs (2)
54if (excludePatterns.Count > 0) 147var anyExcludes = excludePatterns.Count > 0;
Evaluation\LazyItemEvaluator.OrderedItemDataCollection.cs (2)
51public int Count => _listBuilder.Count; 108for (int i = 0; i < _listBuilder.Count; i++)
System.Collections.Immutable (19)
System\Collections\Immutable\ImmutableList_1.Builder.cs (19)
328Requires.Range(index + count <= this.Count, nameof(count)); 522_root.IndexOf(item, index, this.Count - index, EqualityComparer<T>.Default); 593if (this.Count == 0) 598return _root.LastIndexOf(item, this.Count - 1, this.Count, EqualityComparer<T>.Default); 619if (this.Count == 0 && startIndex == 0) 716Requires.Range(index >= 0 && index <= this.Count, nameof(index)); 737int count = this.Count; 739return count - this.Count; 753int index = this.IndexOf(item, 0, this.Count, equalityComparer); 770Requires.Range(index >= 0 && index <= this.Count, nameof(index)); 771Requires.Range(count >= 0 && index <= this.Count - count, nameof(count)); 834int index = this.IndexOf(oldValue, 0, this.Count, equalityComparer); 848this.Reverse(0, this.Count); 860Requires.Range(index + count <= this.Count, nameof(count)); 919Requires.Range(index + count <= this.Count, nameof(count)); 966return this.BinarySearch(0, this.Count, item, comparer); 1033return this.Count - 1; 1207public T[] Contents => _cachedContents ??= _list.ToArray(_list.Count);