145 references to Range
System.Collections.Immutable (145)
System\Collections\Immutable\ImmutableArray.cs (6)
218
Requires.
Range
(start >= 0 && start <= items.Length, nameof(start));
219
Requires.
Range
(length >= 0 && start + length <= items.Length, nameof(length));
249
Requires.
Range
(start >= 0 && start <= items.Length, nameof(start));
250
Requires.
Range
(length >= 0 && start + length <= items.Length, nameof(length));
313
Requires.
Range
(start >= 0 && start <= itemsLength, nameof(start));
314
Requires.
Range
(length >= 0 && start + length <= itemsLength, nameof(length));
System\Collections\Immutable\ImmutableArray_1.Builder.cs (22)
36
Requires.
Range
(capacity >= 0, nameof(capacity));
99
Requires.
Range
(value >= 0, nameof(value));
255
Requires.
Range
(index >= 0 && index <= this.Count, nameof(index));
274
Requires.
Range
(index >= 0 && index <= this.Count, nameof(index));
303
Requires.
Range
(index >= 0 && index <= this.Count, nameof(index));
397
Requires.
Range
(length >= 0 && length <= items.Length, nameof(length));
421
Requires.
Range
(length >= 0, nameof(length));
565
Requires.
Range
(index >= 0 && index < this.Count, nameof(index));
582
Requires.
Range
(index >= 0 && index <= _count, nameof(index));
583
Requires.
Range
(length >= 0 && index <= _count - length, nameof(length));
703
Requires.
Range
(index >= 0 && index + this.Count <= array.Length, nameof(index));
727
Requires.
Range
(length >= 0, nameof(length));
728
Requires.
Range
(sourceIndex >= 0 && sourceIndex + length <= this.Count, nameof(sourceIndex));
729
Requires.
Range
(destinationIndex >= 0 && destinationIndex + length <= destination.Length, nameof(destinationIndex));
799
Requires.
Range
(startIndex >= 0 && startIndex < this.Count, nameof(startIndex));
800
Requires.
Range
(count >= 0 && startIndex + count <= this.Count, nameof(count));
864
Requires.
Range
(startIndex >= 0 && startIndex < this.Count, nameof(startIndex));
896
Requires.
Range
(startIndex >= 0 && startIndex < this.Count, nameof(startIndex));
897
Requires.
Range
(count >= 0 && startIndex - count + 1 >= 0, nameof(count));
1003
Requires.
Range
(index >= 0, nameof(index));
1004
Requires.
Range
(count >= 0 && index + count <= this.Count, nameof(count));
1018
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 && startIndex + count <= 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\ImmutableDictionary_2.Builder.cs (2)
346
Requires.
Range
(arrayIndex >= 0, nameof(arrayIndex));
347
Requires.
Range
(array.Length >= arrayIndex + this.Count, nameof(arrayIndex));
System\Collections\Immutable\ImmutableDictionary_2.cs (5)
612
Requires.
Range
(arrayIndex >= 0, nameof(arrayIndex));
613
Requires.
Range
(array.Length >= arrayIndex + this.Count, nameof(arrayIndex));
752
Requires.
Range
(arrayIndex >= 0, nameof(arrayIndex));
753
Requires.
Range
(array.Length >= arrayIndex + this.Count, nameof(arrayIndex));
1020
Requires.
Range
(count >= 0, nameof(count));
System\Collections\Immutable\ImmutableExtensions.Minimal.cs (1)
149
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));
982
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)
326
Requires.
Range
(index >= 0, nameof(index));
327
Requires.
Range
(count >= 0, nameof(count));
328
Requires.
Range
(index + count <= this.Count, nameof(count));
716
Requires.
Range
(index >= 0 && index <= this.Count, nameof(index));
770
Requires.
Range
(index >= 0 && index <= this.Count, nameof(index));
771
Requires.
Range
(count >= 0 && index <= this.Count - count, nameof(count));
858
Requires.
Range
(index >= 0, nameof(index));
859
Requires.
Range
(count >= 0, nameof(count));
860
Requires.
Range
(index + count <= this.Count, nameof(count));
917
Requires.
Range
(index >= 0, nameof(index));
918
Requires.
Range
(count >= 0, nameof(count));
919
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 (40)
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));
537
Requires.
Range
(index >= 0, nameof(index));
538
Requires.
Range
(count >= 0, nameof(count));
539
Requires.
Range
(index + count <= this.Count, nameof(index));
611
Requires.
Range
(index >= 0, nameof(index));
612
Requires.
Range
(count >= 0, nameof(count));
653
Requires.
Range
(index >= 0, nameof(index));
654
Requires.
Range
(count >= 0, nameof(count));
762
Requires.
Range
(index >= 0, nameof(index));
763
Requires.
Range
(count >= 0, nameof(count));
764
Requires.
Range
(count <= this.Count, nameof(count));
765
Requires.
Range
(index + count <= this.Count, nameof(count));
804
Requires.
Range
(index >= 0, nameof(index));
805
Requires.
Range
(count >= 0 && count <= this.Count, nameof(count));
837
Requires.
Range
(array.Length >= this.Count, nameof(array));
861
Requires.
Range
(arrayIndex >= 0, nameof(arrayIndex));
862
Requires.
Range
(array.Length >= arrayIndex + this.Count, nameof(arrayIndex));
889
Requires.
Range
(index >= 0, nameof(index));
890
Requires.
Range
(count >= 0, nameof(count));
891
Requires.
Range
(index + count <= this.Count, nameof(count));
892
Requires.
Range
(arrayIndex >= 0, nameof(arrayIndex));
893
Requires.
Range
(arrayIndex + count <= array.Length, nameof(arrayIndex));
912
Requires.
Range
(arrayIndex >= 0, nameof(arrayIndex));
913
Requires.
Range
(array.Length >= arrayIndex + this.Count, nameof(arrayIndex));
1103
Requires.
Range
(startIndex >= 0 && startIndex <= this.Count, nameof(startIndex));
1124
Requires.
Range
(startIndex >= 0, nameof(startIndex));
1125
Requires.
Range
(count >= 0, nameof(count));
1126
Requires.
Range
(startIndex <= this.Count - count, nameof(count));
1211
Requires.
Range
(startIndex >= 0, nameof(startIndex));
1212
Requires.
Range
(startIndex == 0 || startIndex < this.Count, nameof(startIndex));
1236
Requires.
Range
(startIndex >= 0, nameof(startIndex));
1237
Requires.
Range
(count <= this.Count, nameof(count));
1238
Requires.
Range
(startIndex - count + 1 >= 0, nameof(startIndex));
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));