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