145 references to Range
System.Collections.Immutable (145)
System\Collections\Immutable\ImmutableArray.cs (6)
218Requires.Range(start >= 0 && start <= items.Length, nameof(start)); 219Requires.Range(length >= 0 && start + length <= items.Length, nameof(length)); 249Requires.Range(start >= 0 && start <= items.Length, nameof(start)); 250Requires.Range(length >= 0 && start + length <= items.Length, nameof(length)); 313Requires.Range(start >= 0 && start <= itemsLength, nameof(start)); 314Requires.Range(length >= 0 && start + length <= itemsLength, nameof(length));
System\Collections\Immutable\ImmutableArray_1.Builder.cs (22)
36Requires.Range(capacity >= 0, nameof(capacity)); 99Requires.Range(value >= 0, nameof(value)); 255Requires.Range(index >= 0 && index <= this.Count, nameof(index)); 274Requires.Range(index >= 0 && index <= this.Count, nameof(index)); 303Requires.Range(index >= 0 && index <= this.Count, nameof(index)); 397Requires.Range(length >= 0 && length <= items.Length, nameof(length)); 421Requires.Range(length >= 0, nameof(length)); 565Requires.Range(index >= 0 && index < this.Count, nameof(index)); 582Requires.Range(index >= 0 && index <= _count, nameof(index)); 583Requires.Range(length >= 0 && index <= _count - length, nameof(length)); 703Requires.Range(index >= 0 && index + this.Count <= array.Length, nameof(index)); 727Requires.Range(length >= 0, nameof(length)); 728Requires.Range(sourceIndex >= 0 && sourceIndex + length <= this.Count, nameof(sourceIndex)); 729Requires.Range(destinationIndex >= 0 && destinationIndex + length <= destination.Length, nameof(destinationIndex)); 799Requires.Range(startIndex >= 0 && startIndex < this.Count, nameof(startIndex)); 800Requires.Range(count >= 0 && startIndex + count <= this.Count, nameof(count)); 864Requires.Range(startIndex >= 0 && startIndex < this.Count, nameof(startIndex)); 896Requires.Range(startIndex >= 0 && startIndex < this.Count, nameof(startIndex)); 897Requires.Range(count >= 0 && startIndex - count + 1 >= 0, nameof(count)); 1003Requires.Range(index >= 0, nameof(index)); 1004Requires.Range(count >= 0 && index + count <= this.Count, nameof(count)); 1018Requires.Range(this.Count <= destination.Length, nameof(destination));
System\Collections\Immutable\ImmutableArray_1.cs (17)
176Requires.Range(startIndex >= 0 && startIndex < self.Length, nameof(startIndex)); 177Requires.Range(count >= 0 && startIndex + count <= self.Length, nameof(count)); 261Requires.Range(startIndex >= 0 && startIndex < self.Length, nameof(startIndex)); 262Requires.Range(count >= 0 && startIndex - count + 1 >= 0, nameof(count)); 317Requires.Range(index >= 0 && index <= self.Length, nameof(index)); 349Requires.Range(index >= 0 && index <= self.Length, nameof(index)); 403Requires.Range(index >= 0 && index <= self.Length, nameof(index)); 455Requires.Range(length >= 0 && length <= items.Length, nameof(length)); 506Requires.Range(length >= 0, nameof(length)); 558Requires.Range(index >= 0 && index < self.Length, nameof(index)); 652Requires.Range(index >= 0 && index <= self.Length, nameof(index)); 653Requires.Range(length >= 0 && index <= self.Length - length, nameof(length)); 829Requires.Range(index >= 0, nameof(index)); 830Requires.Range(count >= 0 && index + count <= self.Length, nameof(count)); 916Requires.Range(self.Length <= destination.Length, nameof(destination)); 931Requires.Range(index >= 0 && index <= self.Length, nameof(index)); 956Requires.Range(index >= 0 && index <= self.Length, nameof(index));
System\Collections\Immutable\ImmutableDictionary_2.Builder.cs (2)
346Requires.Range(arrayIndex >= 0, nameof(arrayIndex)); 347Requires.Range(array.Length >= arrayIndex + this.Count, nameof(arrayIndex));
System\Collections\Immutable\ImmutableDictionary_2.cs (5)
612Requires.Range(arrayIndex >= 0, nameof(arrayIndex)); 613Requires.Range(array.Length >= arrayIndex + this.Count, nameof(arrayIndex)); 752Requires.Range(arrayIndex >= 0, nameof(arrayIndex)); 753Requires.Range(array.Length >= arrayIndex + this.Count, nameof(arrayIndex)); 1020Requires.Range(count >= 0, nameof(count));
System\Collections\Immutable\ImmutableExtensions.Minimal.cs (1)
149Requires.Range(count >= 0, nameof(count));
System\Collections\Immutable\ImmutableHashSet_1.Builder.cs (2)
396Requires.Range(arrayIndex >= 0, nameof(arrayIndex)); 397Requires.Range(array.Length >= arrayIndex + this.Count, nameof(arrayIndex));
System\Collections\Immutable\ImmutableHashSet_1.cs (5)
495Requires.Range(arrayIndex >= 0, nameof(arrayIndex)); 496Requires.Range(array.Length >= arrayIndex + this.Count, nameof(arrayIndex)); 540Requires.Range(arrayIndex >= 0, nameof(arrayIndex)); 541Requires.Range(array.Length >= arrayIndex + this.Count, nameof(arrayIndex)); 982Requires.Range(count >= 0, nameof(count));
System\Collections\Immutable\ImmutableHashSet_1.MutationInput.cs (1)
63Requires.Range(count >= 0, nameof(count));
System\Collections\Immutable\ImmutableList_1.Builder.cs (12)
326Requires.Range(index >= 0, nameof(index)); 327Requires.Range(count >= 0, nameof(count)); 328Requires.Range(index + count <= this.Count, nameof(count)); 716Requires.Range(index >= 0 && index <= this.Count, nameof(index)); 770Requires.Range(index >= 0 && index <= this.Count, nameof(index)); 771Requires.Range(count >= 0 && index <= this.Count - count, nameof(count)); 858Requires.Range(index >= 0, nameof(index)); 859Requires.Range(count >= 0, nameof(count)); 860Requires.Range(index + count <= this.Count, nameof(count)); 917Requires.Range(index >= 0, nameof(index)); 918Requires.Range(count >= 0, nameof(count)); 919Requires.Range(index + count <= this.Count, nameof(count));
System\Collections\Immutable\ImmutableList_1.cs (11)
261Requires.Range(index >= 0 && index <= this.Count, nameof(index)); 270Requires.Range(index >= 0 && index <= this.Count, nameof(index)); 300Requires.Range(index >= 0 && index <= this.Count, nameof(index)); 301Requires.Range(count >= 0 && index <= this.Count - count, nameof(count)); 363Requires.Range(index >= 0 && index < this.Count, nameof(index)); 473Requires.Range(index >= 0, nameof(index)); 474Requires.Range(count >= 0, nameof(count)); 475Requires.Range(index + count <= this.Count, nameof(count)); 556Requires.Range(index >= 0, nameof(index)); 557Requires.Range(count >= 0, nameof(count)); 558Requires.Range(index + count <= this.Count, nameof(count));
System\Collections\Immutable\ImmutableList_1.Enumerator.cs (2)
90Requires.Range(startIndex >= -1, nameof(startIndex)); 91Requires.Range(count >= -1, nameof(count));
System\Collections\Immutable\ImmutableList_1.Node.cs (40)
152Requires.Range(index >= 0 && index < this.Count, nameof(index)); 176Requires.Range(index >= 0 && index < this.Count, nameof(index)); 246Requires.Range(start >= 0, nameof(start)); 247Requires.Range(length >= 0, nameof(length)); 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)); 537Requires.Range(index >= 0, nameof(index)); 538Requires.Range(count >= 0, nameof(count)); 539Requires.Range(index + count <= this.Count, nameof(index)); 611Requires.Range(index >= 0, nameof(index)); 612Requires.Range(count >= 0, nameof(count)); 653Requires.Range(index >= 0, nameof(index)); 654Requires.Range(count >= 0, nameof(count)); 762Requires.Range(index >= 0, nameof(index)); 763Requires.Range(count >= 0, nameof(count)); 764Requires.Range(count <= this.Count, nameof(count)); 765Requires.Range(index + count <= this.Count, nameof(count)); 804Requires.Range(index >= 0, nameof(index)); 805Requires.Range(count >= 0 && count <= this.Count, nameof(count)); 837Requires.Range(array.Length >= this.Count, nameof(array)); 861Requires.Range(arrayIndex >= 0, nameof(arrayIndex)); 862Requires.Range(array.Length >= arrayIndex + this.Count, nameof(arrayIndex)); 889Requires.Range(index >= 0, nameof(index)); 890Requires.Range(count >= 0, nameof(count)); 891Requires.Range(index + count <= this.Count, nameof(count)); 892Requires.Range(arrayIndex >= 0, nameof(arrayIndex)); 893Requires.Range(arrayIndex + count <= array.Length, nameof(arrayIndex)); 912Requires.Range(arrayIndex >= 0, nameof(arrayIndex)); 913Requires.Range(array.Length >= arrayIndex + this.Count, nameof(arrayIndex)); 1103Requires.Range(startIndex >= 0 && startIndex <= this.Count, nameof(startIndex)); 1124Requires.Range(startIndex >= 0, nameof(startIndex)); 1125Requires.Range(count >= 0, nameof(count)); 1126Requires.Range(startIndex <= this.Count - count, nameof(count)); 1211Requires.Range(startIndex >= 0, nameof(startIndex)); 1212Requires.Range(startIndex == 0 || startIndex < this.Count, nameof(startIndex)); 1236Requires.Range(startIndex >= 0, nameof(startIndex)); 1237Requires.Range(count <= this.Count, nameof(count)); 1238Requires.Range(startIndex - count + 1 >= 0, nameof(startIndex));
System\Collections\Immutable\ImmutableSortedDictionary_2.cs (3)
68Requires.Range(count >= 0, nameof(count)); 524Requires.Range(arrayIndex >= 0, nameof(arrayIndex)); 525Requires.Range(array.Length >= arrayIndex + this.Count, nameof(arrayIndex));
System\Collections\Immutable\ImmutableSortedDictionary_2.Node.cs (6)
202Requires.Range(arrayIndex >= 0, nameof(arrayIndex)); 203Requires.Range(array.Length >= arrayIndex + dictionarySize, nameof(arrayIndex)); 217Requires.Range(arrayIndex >= 0, nameof(arrayIndex)); 218Requires.Range(array.Length >= arrayIndex + dictionarySize, nameof(arrayIndex)); 592Requires.Range(start >= 0, nameof(start)); 593Requires.Range(length >= 0, nameof(length));
System\Collections\Immutable\ImmutableSortedSet_1.Node.cs (6)
206Requires.Range(index >= 0 && index < this.Count, nameof(index)); 230Requires.Range(index >= 0 && index < this.Count, nameof(index)); 309Requires.Range(arrayIndex >= 0, nameof(arrayIndex)); 310Requires.Range(array.Length >= arrayIndex + this.Count, nameof(arrayIndex)); 323Requires.Range(arrayIndex >= 0, nameof(arrayIndex)); 324Requires.Range(array.Length >= arrayIndex + this.Count, nameof(arrayIndex));
System\Collections\Immutable\KeysOrValuesCollectionAccessor.cs (4)
93Requires.Range(arrayIndex >= 0, nameof(arrayIndex)); 94Requires.Range(array.Length >= arrayIndex + this.Count, nameof(arrayIndex)); 134Requires.Range(arrayIndex >= 0, nameof(arrayIndex)); 135Requires.Range(array.Length >= arrayIndex + this.Count, nameof(arrayIndex));