146 references to Range
System.Collections.Immutable (146)
System\Collections\Immutable\ImmutableArray_1.Builder.cs (22)
35
Requires.
Range
(capacity >= 0, nameof(capacity));
98
Requires.
Range
(value >= 0, nameof(value));
254
Requires.
Range
(index >= 0 && index <= this.Count, nameof(index));
273
Requires.
Range
(index >= 0 && index <= this.Count, nameof(index));
302
Requires.
Range
(index >= 0 && index <= this.Count, nameof(index));
396
Requires.
Range
(length >= 0 && length <= items.Length, nameof(length));
420
Requires.
Range
(length >= 0, nameof(length));
566
Requires.
Range
(index >= 0 && index < this.Count, nameof(index));
583
Requires.
Range
(index >= 0 && index <= _count, nameof(index));
584
Requires.
Range
(length >= 0 && index <= _count - length, nameof(length));
697
Requires.
Range
(index >= 0 && index + this.Count <= array.Length, nameof(index));
721
Requires.
Range
(length >= 0, nameof(length));
722
Requires.
Range
(sourceIndex >= 0 && sourceIndex + length <= this.Count, nameof(sourceIndex));
723
Requires.
Range
(destinationIndex >= 0 && destinationIndex + length <= destination.Length, nameof(destinationIndex));
793
Requires.
Range
(startIndex >= 0 && startIndex <= this.Count, nameof(startIndex));
794
Requires.
Range
(count >= 0 && (uint)(startIndex + count) <= (uint)this.Count, nameof(count));
858
Requires.
Range
(startIndex >= 0 && startIndex < this.Count, nameof(startIndex));
890
Requires.
Range
(startIndex >= 0 && startIndex < this.Count, nameof(startIndex));
891
Requires.
Range
(count >= 0 && startIndex - count + 1 >= 0, nameof(count));
997
Requires.
Range
(index >= 0, nameof(index));
998
Requires.
Range
(count >= 0 && index + count <= this.Count, nameof(count));
1012
Requires.
Range
(this.Count <= destination.Length, nameof(destination));
System\Collections\Immutable\ImmutableArray_1.cs (17)
176
Requires.
Range
(startIndex >= 0 && startIndex <= self.Length, nameof(startIndex));
177
Requires.
Range
(count >= 0 && (uint)(startIndex + count) <= (uint)self.Length, nameof(count));
261
Requires.
Range
(startIndex >= 0 && startIndex < self.Length, nameof(startIndex));
262
Requires.
Range
(count >= 0 && startIndex - count + 1 >= 0, nameof(count));
317
Requires.
Range
(index >= 0 && index <= self.Length, nameof(index));
349
Requires.
Range
(index >= 0 && index <= self.Length, nameof(index));
403
Requires.
Range
(index >= 0 && index <= self.Length, nameof(index));
455
Requires.
Range
(length >= 0 && length <= items.Length, nameof(length));
506
Requires.
Range
(length >= 0, nameof(length));
558
Requires.
Range
(index >= 0 && index < self.Length, nameof(index));
652
Requires.
Range
(index >= 0 && index <= self.Length, nameof(index));
653
Requires.
Range
(length >= 0 && index <= self.Length - length, nameof(length));
829
Requires.
Range
(index >= 0, nameof(index));
830
Requires.
Range
(count >= 0 && index + count <= self.Length, nameof(count));
916
Requires.
Range
(self.Length <= destination.Length, nameof(destination));
931
Requires.
Range
(index >= 0 && index <= self.Length, nameof(index));
956
Requires.
Range
(index >= 0 && index <= self.Length, nameof(index));
System\Collections\Immutable\ImmutableArray.cs (8)
218
Requires.
Range
(start >= 0 && start <= items.Length, nameof(start));
219
Requires.
Range
(length >= 0 && length <= items.Length - start, nameof(length));
245
Requires.
Range
(start >= 0 && start <= items.Length, nameof(start));
246
Requires.
Range
(length >= 0 && length <= items.Length - start, nameof(length));
309
Requires.
Range
(start >= 0 && start <= itemsLength, nameof(start));
310
Requires.
Range
(length >= 0 && length <= itemsLength - start, nameof(length));
381
Requires.
Range
(start >= 0 && start <= itemsLength, nameof(start));
382
Requires.
Range
(length >= 0 && length <= itemsLength - start, nameof(length));
System\Collections\Immutable\ImmutableDictionary_2.Builder.cs (2)
332
Requires.
Range
(arrayIndex >= 0, nameof(arrayIndex));
333
Requires.
Range
(array.Length >= arrayIndex + this.Count, nameof(arrayIndex));
System\Collections\Immutable\ImmutableDictionary_2.cs (5)
619
Requires.
Range
(arrayIndex >= 0, nameof(arrayIndex));
620
Requires.
Range
(array.Length >= arrayIndex + this.Count, nameof(arrayIndex));
759
Requires.
Range
(arrayIndex >= 0, nameof(arrayIndex));
760
Requires.
Range
(array.Length >= arrayIndex + this.Count, nameof(arrayIndex));
1051
Requires.
Range
(count >= 0, nameof(count));
System\Collections\Immutable\ImmutableExtensions.Minimal.cs (1)
131
Requires.
Range
(count >= 0, nameof(count));
System\Collections\Immutable\ImmutableHashSet_1.Builder.cs (2)
396
Requires.
Range
(arrayIndex >= 0, nameof(arrayIndex));
397
Requires.
Range
(array.Length >= arrayIndex + this.Count, nameof(arrayIndex));
System\Collections\Immutable\ImmutableHashSet_1.cs (5)
495
Requires.
Range
(arrayIndex >= 0, nameof(arrayIndex));
496
Requires.
Range
(array.Length >= arrayIndex + this.Count, nameof(arrayIndex));
540
Requires.
Range
(arrayIndex >= 0, nameof(arrayIndex));
541
Requires.
Range
(array.Length >= arrayIndex + this.Count, nameof(arrayIndex));
1047
Requires.
Range
(count >= 0, nameof(count));
System\Collections\Immutable\ImmutableHashSet_1.MutationInput.cs (1)
63
Requires.
Range
(count >= 0, nameof(count));
System\Collections\Immutable\ImmutableList_1.Builder.cs (12)
322
Requires.
Range
(index >= 0, nameof(index));
323
Requires.
Range
(count >= 0, nameof(count));
324
Requires.
Range
(index + count <= this.Count, nameof(count));
712
Requires.
Range
(index >= 0 && index <= this.Count, nameof(index));
766
Requires.
Range
(index >= 0 && index <= this.Count, nameof(index));
767
Requires.
Range
(count >= 0 && index <= this.Count - count, nameof(count));
854
Requires.
Range
(index >= 0, nameof(index));
855
Requires.
Range
(count >= 0, nameof(count));
856
Requires.
Range
(index + count <= this.Count, nameof(count));
913
Requires.
Range
(index >= 0, nameof(index));
914
Requires.
Range
(count >= 0, nameof(count));
915
Requires.
Range
(index + count <= this.Count, nameof(count));
System\Collections\Immutable\ImmutableList_1.cs (11)
261
Requires.
Range
(index >= 0 && index <= this.Count, nameof(index));
270
Requires.
Range
(index >= 0 && index <= this.Count, nameof(index));
300
Requires.
Range
(index >= 0 && index <= this.Count, nameof(index));
301
Requires.
Range
(count >= 0 && index <= this.Count - count, nameof(count));
363
Requires.
Range
(index >= 0 && index < this.Count, nameof(index));
473
Requires.
Range
(index >= 0, nameof(index));
474
Requires.
Range
(count >= 0, nameof(count));
475
Requires.
Range
(index + count <= this.Count, nameof(count));
556
Requires.
Range
(index >= 0, nameof(index));
557
Requires.
Range
(count >= 0, nameof(count));
558
Requires.
Range
(index + count <= this.Count, nameof(count));
System\Collections\Immutable\ImmutableList_1.Enumerator.cs (2)
90
Requires.
Range
(startIndex >= -1, nameof(startIndex));
91
Requires.
Range
(count >= -1, nameof(count));
System\Collections\Immutable\ImmutableList_1.Node.cs (39)
152
Requires.
Range
(index >= 0 && index < this.Count, nameof(index));
176
Requires.
Range
(index >= 0 && index < this.Count, nameof(index));
246
Requires.
Range
(start >= 0, nameof(start));
247
Requires.
Range
(length >= 0, nameof(length));
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));
546
Requires.
Range
(index >= 0, nameof(index));
547
Requires.
Range
(count >= 0, nameof(count));
548
Requires.
Range
(index + count <= this.Count, nameof(index));
625
Requires.
Range
(index >= 0, nameof(index));
626
Requires.
Range
(count >= 0, nameof(count));
667
Requires.
Range
(index >= 0, nameof(index));
668
Requires.
Range
(count >= 0, nameof(count));
776
Requires.
Range
(index >= 0 && index <= this.Count, nameof(index));
777
Requires.
Range
(count >= 0 && (uint)(index + count) <= (uint)this.Count, nameof(count));
821
Requires.
Range
(startIndex >= 0 && startIndex < this.Count, nameof(startIndex));
822
Requires.
Range
(count >= 0 && count <= this.Count, nameof(count));
823
Requires.
Range
(startIndex - count + 1 >= 0, nameof(count));
854
Requires.
Range
(array.Length >= this.Count, nameof(array));
878
Requires.
Range
(arrayIndex >= 0, nameof(arrayIndex));
879
Requires.
Range
(array.Length >= arrayIndex + this.Count, nameof(arrayIndex));
906
Requires.
Range
(index >= 0, nameof(index));
907
Requires.
Range
(count >= 0, nameof(count));
908
Requires.
Range
(index + count <= this.Count, nameof(count));
909
Requires.
Range
(arrayIndex >= 0, nameof(arrayIndex));
910
Requires.
Range
(arrayIndex + count <= array.Length, nameof(arrayIndex));
929
Requires.
Range
(arrayIndex >= 0, nameof(arrayIndex));
930
Requires.
Range
(array.Length >= arrayIndex + this.Count, nameof(arrayIndex));
1120
Requires.
Range
(startIndex >= 0 && startIndex <= this.Count, nameof(startIndex));
1141
Requires.
Range
(startIndex >= 0, nameof(startIndex));
1142
Requires.
Range
(count >= 0, nameof(count));
1143
Requires.
Range
(startIndex <= this.Count - count, nameof(count));
1228
Requires.
Range
(startIndex >= 0, nameof(startIndex));
1229
Requires.
Range
(startIndex == 0 || startIndex < this.Count, nameof(startIndex));
1259
Requires.
Range
(startIndex >= 0 && startIndex < this.Count, nameof(startIndex));
1260
Requires.
Range
(count >= 0 && count <= this.Count, nameof(count));
1261
Requires.
Range
(startIndex - count + 1 >= 0, nameof(count));
System\Collections\Immutable\ImmutableSortedDictionary_2.cs (3)
68
Requires.
Range
(count >= 0, nameof(count));
524
Requires.
Range
(arrayIndex >= 0, nameof(arrayIndex));
525
Requires.
Range
(array.Length >= arrayIndex + this.Count, nameof(arrayIndex));
System\Collections\Immutable\ImmutableSortedDictionary_2.Node.cs (6)
202
Requires.
Range
(arrayIndex >= 0, nameof(arrayIndex));
203
Requires.
Range
(array.Length >= arrayIndex + dictionarySize, nameof(arrayIndex));
217
Requires.
Range
(arrayIndex >= 0, nameof(arrayIndex));
218
Requires.
Range
(array.Length >= arrayIndex + dictionarySize, nameof(arrayIndex));
592
Requires.
Range
(start >= 0, nameof(start));
593
Requires.
Range
(length >= 0, nameof(length));
System\Collections\Immutable\ImmutableSortedSet_1.Node.cs (6)
206
Requires.
Range
(index >= 0 && index < this.Count, nameof(index));
230
Requires.
Range
(index >= 0 && index < this.Count, nameof(index));
309
Requires.
Range
(arrayIndex >= 0, nameof(arrayIndex));
310
Requires.
Range
(array.Length >= arrayIndex + this.Count, nameof(arrayIndex));
323
Requires.
Range
(arrayIndex >= 0, nameof(arrayIndex));
324
Requires.
Range
(array.Length >= arrayIndex + this.Count, nameof(arrayIndex));
System\Collections\Immutable\KeysOrValuesCollectionAccessor.cs (4)
93
Requires.
Range
(arrayIndex >= 0, nameof(arrayIndex));
94
Requires.
Range
(array.Length >= arrayIndex + this.Count, nameof(arrayIndex));
134
Requires.
Range
(arrayIndex >= 0, nameof(arrayIndex));
135
Requires.
Range
(array.Length >= arrayIndex + this.Count, nameof(arrayIndex));