42 references to Count
System.Collections.Immutable (42)
System\Collections\Immutable\ImmutableDictionary_2.HashBucket.cs (1)
234int indexOfRootNode = _additionalElements.Left!.Count;
System\Collections\Immutable\ImmutableHashSet_1.HashBucket.cs (1)
221int indexOfRootNode = _additionalElements.Left!.Count;
System\Collections\Immutable\ImmutableList_1.Builder.cs (1)
72get { return this.Root.Count; }
System\Collections\Immutable\ImmutableList_1.cs (1)
140public int Count => _root.Count;
System\Collections\Immutable\ImmutableList_1.Enumerator.cs (8)
92Requires.Argument(reversed || count == -1 || (startIndex == -1 ? 0 : startIndex) + count <= root.Count); 93Requires.Argument(!reversed || count == -1 || (startIndex == -1 ? root.Count - 1 : startIndex) - count + 1 >= 0); 98_startIndex = startIndex >= 0 ? startIndex : (reversed ? root.Count - 1 : 0); 99_count = count == -1 ? root.Count : count; 206int skipNodes = _reversed ? _root.Count - _startIndex - 1 : _startIndex; 207while (!node.IsEmpty && skipNodes != this.PreviousBranch(node)!.Count) 209if (skipNodes < this.PreviousBranch(node)!.Count) 216skipNodes -= this.PreviousBranch(node)!.Count + 1;
System\Collections\Immutable\ImmutableList_1.Node.cs (30)
152Requires.Range(index >= 0 && index < this.Count, nameof(index)); 176Requires.Range(index >= 0 && index < this.Count, nameof(index)); 305Requires.Range(index >= 0 && index <= this.Count, nameof(index)); 370Requires.Range(index >= 0 && index <= this.Count, nameof(index)); 400Requires.Range(index >= 0 && index < this.Count, nameof(index)); 500Requires.Range(index >= 0 && index < this.Count, nameof(index)); 527internal Node Reverse() => this.Reverse(0, this.Count); 539Requires.Range(index + count <= this.Count, nameof(index)); 577var array = new T[this.Count]; 580return NodeTreeFromList(array.AsReadOnlyList(), 0, this.Count); 592internal Node Sort(IComparer<T>? comparer) => this.Sort(0, this.Count, comparer); 613Requires.Argument(index + count <= this.Count); 616var array = new T[this.Count]; 619return NodeTreeFromList(array.AsReadOnlyList(), 0, this.Count); 663int thisNodeIndex = _left!.Count; // this is only the index within the AVL tree, treating this node as root rather than a member of a larger tree. 718internal int IndexOf(T item, IEqualityComparer<T>? equalityComparer) => this.IndexOf(item, 0, this.Count, equalityComparer); 764Requires.Range(count <= this.Count, nameof(count)); 765Requires.Range(index + count <= this.Count, nameof(count)); 805Requires.Range(count >= 0 && count <= this.Count, nameof(count)); 837Requires.Range(array.Length >= this.Count, nameof(array)); 862Requires.Range(array.Length >= arrayIndex + this.Count, nameof(arrayIndex)); 891Requires.Range(index + count <= this.Count, nameof(count)); 913Requires.Range(array.Length >= arrayIndex + this.Count, nameof(arrayIndex)); 1103Requires.Range(startIndex >= 0 && startIndex <= this.Count, nameof(startIndex)); 1105return this.FindIndex(startIndex, this.Count - startIndex, match); 1126Requires.Range(startIndex <= this.Count - count, nameof(count)); 1192return this.IsEmpty ? -1 : this.FindLastIndex(this.Count - 1, this.Count, match); 1212Requires.Range(startIndex == 0 || startIndex < this.Count, nameof(startIndex)); 1237Requires.Range(count <= this.Count, nameof(count));