System\Collections\Immutable\ImmutableArray.cs (11)
145Requires.NotNull(items, nameof(items));
217Requires.NotNull(items, nameof(items));
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));
279Requires.NotNull(selector, nameof(selector));
313Requires.Range(start >= 0 && start <= itemsLength, nameof(start));
314Requires.Range(length >= 0 && start + length <= itemsLength, nameof(length));
315Requires.NotNull(selector, nameof(selector));
347Requires.NotNull(selector, nameof(selector));
System\Collections\Immutable\ImmutableArray_1.Builder.cs (35)
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));
275Requires.NotNull(items, nameof(items));
303Requires.Range(index >= 0 && index <= this.Count, nameof(index));
340Requires.NotNull(items, nameof(items));
366Requires.NotNull(items, nameof(items));
381Requires.NotNull(items, nameof(items));
396Requires.NotNull(items, nameof(items));
397Requires.Range(length >= 0 && length <= items.Length, nameof(length));
421Requires.Range(length >= 0, nameof(length));
477Requires.NotNull(items, nameof(items));
488Requires.NotNull(items, nameof(items));
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));
624Requires.NotNull(items, nameof(items));
702Requires.NotNull(array, nameof(array));
703Requires.Range(index >= 0 && index + this.Count <= array.Length, nameof(index));
713Requires.NotNull(destination, nameof(destination));
726Requires.NotNull(destination, nameof(destination));
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));
963Requires.NotNull(comparison, nameof(comparison));
1003Requires.Range(index >= 0, nameof(index));
1004Requires.Range(count >= 0 && index + count <= this.Count, nameof(count));
1018Requires.Range(this.Count <= destination.Length, nameof(destination));
1074Requires.NotNull(indicesToRemove, nameof(indicesToRemove));
System\Collections\Immutable\ImmutableArray_1.cs (27)
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));
350Requires.NotNull(items, nameof(items));
403Requires.Range(index >= 0 && index <= self.Length, nameof(index));
454Requires.NotNull(items, nameof(items));
455Requires.Range(length >= 0 && length <= items.Length, nameof(length));
483Requires.NotNull(items, nameof(items));
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));
693Requires.NotNull(items, nameof(items));
732Requires.NotNull(items.array!, nameof(items));
752Requires.NotNull(match, nameof(match));
803Requires.NotNull(comparison, nameof(comparison));
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));
932Requires.NotNull(items, nameof(items));
956Requires.Range(index >= 0 && index <= self.Length, nameof(index));
1023Requires.NotNull(items, nameof(items));
1481Requires.NotNull(indicesToRemove, nameof(indicesToRemove));
System\Collections\Immutable\ImmutableDictionary_2.cs (26)
52: this(Requires.NotNullPassthrough(comparers, nameof(comparers)))
54Requires.NotNull(root, nameof(root));
246Requires.NotNullAllowStructs(key, nameof(key));
300Requires.NotNullAllowStructs(key, nameof(key));
311Requires.NotNull(pairs, nameof(pairs));
321Requires.NotNullAllowStructs(key, nameof(key));
334Requires.NotNull(items, nameof(items));
345Requires.NotNullAllowStructs(key, nameof(key));
356Requires.NotNull(keys, nameof(keys));
388Requires.NotNullAllowStructs(key, nameof(key));
409Requires.NotNullAllowStructs(key, nameof(key));
418Requires.NotNullAllowStructs(equalKey, nameof(equalKey));
611Requires.NotNull(array, nameof(array));
612Requires.Range(arrayIndex >= 0, nameof(arrayIndex));
613Requires.Range(array.Length >= arrayIndex + this.Count, nameof(arrayIndex));
751Requires.NotNull(array, nameof(array));
752Requires.Range(arrayIndex >= 0, nameof(arrayIndex));
753Requires.Range(array.Length >= arrayIndex + this.Count, nameof(arrayIndex));
830Requires.NotNull(comparers, nameof(comparers));
932Requires.NotNullAllowStructs(key, nameof(key));
952Requires.NotNull(items, nameof(items));
958Requires.NotNullAllowStructs(pair.Key, nameof(pair.Key));
1018Requires.NotNull(root, nameof(root));
1019Requires.NotNull(comparers, nameof(comparers));
1020Requires.Range(count >= 0, nameof(count));
1052Requires.NotNull(pairs, nameof(pairs));
System\Collections\Immutable\ImmutableHashSet_1.cs (34)
71Requires.NotNull(root, nameof(root));
72Requires.NotNull(equalityComparer, nameof(equalityComparer));
226Requires.NotNull(other, nameof(other));
244Requires.NotNull(other, nameof(other));
255Requires.NotNull(other, nameof(other));
268Requires.NotNull(other, nameof(other));
281Requires.NotNull(other, nameof(other));
298Requires.NotNull(other, nameof(other));
310Requires.NotNull(other, nameof(other));
322Requires.NotNull(other, nameof(other));
334Requires.NotNull(other, nameof(other));
346Requires.NotNull(other, nameof(other));
494Requires.NotNull(array, nameof(array));
495Requires.Range(arrayIndex >= 0, nameof(arrayIndex));
496Requires.Range(array.Length >= arrayIndex + this.Count, nameof(arrayIndex));
539Requires.NotNull(array, nameof(array));
540Requires.Range(arrayIndex >= 0, nameof(arrayIndex));
541Requires.Range(array.Length >= arrayIndex + this.Count, nameof(arrayIndex));
598Requires.NotNull(other, nameof(other));
673Requires.NotNull(other, nameof(other));
721Requires.NotNull(other, nameof(other));
744Requires.NotNull(other, nameof(other));
782Requires.NotNull(other, nameof(other));
804Requires.NotNull(other, nameof(other));
805Requires.NotNull(equalityComparer, nameof(equalityComparer));
806Requires.NotNull(root, nameof(root));
834Requires.NotNull(other, nameof(other));
868Requires.NotNull(other, nameof(other));
916Requires.NotNull(other, nameof(other));
941Requires.NotNull(other, nameof(other));
980Requires.NotNull(root, nameof(root));
981Requires.NotNull(equalityComparer, nameof(equalityComparer));
982Requires.Range(count >= 0, nameof(count));
1025Requires.NotNull(items, nameof(items));
System\Collections\Immutable\ImmutableList.cs (13)
44Requires.NotNull(items, nameof(items));
87Requires.NotNull(builder, nameof(builder));
102Requires.NotNull(list, nameof(list));
114Requires.NotNull(list, nameof(list));
128Requires.NotNull(list, nameof(list));
148Requires.NotNull(list, nameof(list));
169Requires.NotNull(list, nameof(list));
194Requires.NotNull(list, nameof(list));
222Requires.NotNull(list, nameof(list));
241Requires.NotNull(list, nameof(list));
268Requires.NotNull(list, nameof(list));
299Requires.NotNull(list, nameof(list));
332Requires.NotNull(list, nameof(list));
System\Collections\Immutable\ImmutableList_1.Builder.cs (21)
60Requires.NotNull(list, nameof(list));
260Requires.NotNull(action, nameof(action));
326Requires.Range(index >= 0, nameof(index));
327Requires.Range(count >= 0, nameof(count));
328Requires.Range(index + count <= this.Count, nameof(count));
349Requires.NotNull(converter, nameof(converter));
697Requires.NotNull(items, nameof(items));
716Requires.Range(index >= 0 && index <= this.Count, nameof(index));
717Requires.NotNull(items, nameof(items));
735Requires.NotNull(match, nameof(match));
770Requires.Range(index >= 0 && index <= this.Count, nameof(index));
771Requires.Range(count >= 0 && index <= this.Count - count, nameof(count));
790Requires.NotNull(items, nameof(items));
858Requires.Range(index >= 0, nameof(index));
859Requires.Range(count >= 0, nameof(count));
860Requires.Range(index + count <= this.Count, nameof(count));
884Requires.NotNull(comparison, nameof(comparison));
917Requires.Range(index >= 0, nameof(index));
918Requires.Range(count >= 0, nameof(count));
919Requires.Range(index + count <= this.Count, nameof(count));
1199Requires.NotNull(builder, nameof(builder));
System\Collections\Immutable\ImmutableList_1.cs (19)
42Requires.NotNull(root, nameof(root));
218Requires.NotNull(items, nameof(items));
261Requires.Range(index >= 0 && index <= this.Count, nameof(index));
270Requires.Range(index >= 0 && index <= this.Count, nameof(index));
271Requires.NotNull(items, nameof(items));
300Requires.Range(index >= 0 && index <= this.Count, nameof(index));
301Requires.Range(count >= 0 && index <= this.Count - count, nameof(count));
335Requires.NotNull(items, nameof(items));
363Requires.Range(index >= 0 && index < this.Count, nameof(index));
381Requires.NotNull(match, nameof(match));
441Requires.NotNull(comparison, nameof(comparison));
473Requires.Range(index >= 0, nameof(index));
474Requires.Range(count >= 0, nameof(count));
475Requires.Range(index + count <= this.Count, nameof(count));
490Requires.NotNull(action, nameof(action));
556Requires.Range(index >= 0, nameof(index));
557Requires.Range(count >= 0, nameof(count));
558Requires.Range(index + count <= this.Count, nameof(count));
579Requires.NotNull(converter, nameof(converter));
System\Collections\Immutable\ImmutableList_1.Node.cs (68)
84Requires.NotNull(left, nameof(left));
85Requires.NotNull(right, nameof(right));
152Requires.Range(index >= 0 && index < this.Count, nameof(index));
176Requires.Range(index >= 0 && index < this.Count, nameof(index));
245Requires.NotNull(items, nameof(items));
246Requires.Range(start >= 0, nameof(start));
247Requires.Range(length >= 0, nameof(length));
305Requires.Range(index >= 0 && index <= this.Count, nameof(index));
333Requires.NotNull(keys, nameof(keys));
370Requires.Range(index >= 0 && index <= this.Count, nameof(index));
371Requires.NotNull(keys, nameof(keys));
400Requires.Range(index >= 0 && index < this.Count, nameof(index));
462Requires.NotNull(match, nameof(match));
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));
574Requires.NotNull(comparison, nameof(comparison));
611Requires.Range(index >= 0, nameof(index));
612Requires.Range(count >= 0, nameof(count));
613Requires.Argument(index + count <= this.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));
806Requires.Argument(index - count + 1 >= 0);
836Requires.NotNull(array, nameof(array));
837Requires.Range(array.Length >= this.Count, nameof(array));
860Requires.NotNull(array, nameof(array));
861Requires.Range(arrayIndex >= 0, nameof(arrayIndex));
862Requires.Range(array.Length >= arrayIndex + this.Count, nameof(arrayIndex));
888Requires.NotNull(array, nameof(array));
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));
911Requires.NotNull(array, nameof(array));
912Requires.Range(arrayIndex >= 0, nameof(arrayIndex));
913Requires.Range(array.Length >= arrayIndex + this.Count, nameof(arrayIndex));
962Requires.NotNull(match, nameof(match));
990Requires.NotNull(match, nameof(match));
1017Requires.NotNull(match, nameof(match));
1045Requires.NotNull(match, nameof(match));
1083Requires.NotNull(match, nameof(match));
1102Requires.NotNull(match, nameof(match));
1103Requires.Range(startIndex >= 0 && startIndex <= this.Count, nameof(startIndex));
1123Requires.NotNull(match, nameof(match));
1124Requires.Range(startIndex >= 0, nameof(startIndex));
1125Requires.Range(count >= 0, nameof(count));
1126Requires.Range(startIndex <= this.Count - count, nameof(count));
1159Requires.NotNull(match, nameof(match));
1190Requires.NotNull(match, nameof(match));
1210Requires.NotNull(match, nameof(match));
1211Requires.Range(startIndex >= 0, nameof(startIndex));
1212Requires.Range(startIndex == 0 || startIndex < this.Count, nameof(startIndex));
1235Requires.NotNull(match, nameof(match));
1236Requires.Range(startIndex >= 0, nameof(startIndex));
1237Requires.Range(count <= this.Count, nameof(count));
1238Requires.Range(startIndex - count + 1 >= 0, nameof(startIndex));
1444Requires.NotNull(left, nameof(left));
1445Requires.NotNull(right, nameof(right));
1470Requires.NotNull(left, nameof(left));
1494Requires.NotNull(right, nameof(right));
System\Collections\Immutable\ImmutableSortedDictionary_2.cs (20)
67Requires.NotNull(root, nameof(root));
68Requires.Range(count >= 0, nameof(count));
69Requires.NotNull(keyComparer, nameof(keyComparer));
70Requires.NotNull(valueComparer, nameof(valueComparer));
189Requires.NotNullAllowStructs(key, nameof(key));
207Requires.NotNullAllowStructs(key, nameof(key));
247Requires.NotNullAllowStructs(key, nameof(key));
257Requires.NotNullAllowStructs(key, nameof(key));
270Requires.NotNull(items, nameof(items));
280Requires.NotNull(items, nameof(items));
290Requires.NotNullAllowStructs(value, nameof(value));
300Requires.NotNull(keys, nameof(keys));
433Requires.NotNullAllowStructs(key, nameof(key));
450Requires.NotNullAllowStructs(key, nameof(key));
459Requires.NotNullAllowStructs(equalKey, nameof(equalKey));
523Requires.NotNull(array, nameof(array));
524Requires.Range(arrayIndex >= 0, nameof(arrayIndex));
525Requires.Range(array.Length >= arrayIndex + this.Count, nameof(arrayIndex));
778Requires.NotNull(items, nameof(items));
834Requires.NotNull(items, nameof(items));
System\Collections\Immutable\ImmutableSortedDictionary_2.Node.cs (41)
79Requires.NotNullAllowStructs(key, nameof(key));
80Requires.NotNull(left, nameof(left));
81Requires.NotNull(right, nameof(right));
201Requires.NotNull(array, nameof(array));
202Requires.Range(arrayIndex >= 0, nameof(arrayIndex));
203Requires.Range(array.Length >= arrayIndex + dictionarySize, nameof(arrayIndex));
216Requires.NotNull(array, nameof(array));
217Requires.Range(arrayIndex >= 0, nameof(arrayIndex));
218Requires.Range(array.Length >= arrayIndex + dictionarySize, nameof(arrayIndex));
233Requires.NotNull(dictionary, nameof(dictionary));
249Requires.NotNullAllowStructs(key, nameof(key));
250Requires.NotNull(keyComparer, nameof(keyComparer));
251Requires.NotNull(valueComparer, nameof(valueComparer));
267Requires.NotNullAllowStructs(key, nameof(key));
268Requires.NotNull(keyComparer, nameof(keyComparer));
269Requires.NotNull(valueComparer, nameof(valueComparer));
283Requires.NotNullAllowStructs(key, nameof(key));
284Requires.NotNull(keyComparer, nameof(keyComparer));
295Requires.NotNullAllowStructs(key, nameof(key));
296Requires.NotNull(keyComparer, nameof(keyComparer));
316Requires.NotNullAllowStructs(key, nameof(key));
317Requires.NotNull(keyComparer, nameof(keyComparer));
347Requires.NotNullAllowStructs(equalKey, nameof(equalKey));
348Requires.NotNull(keyComparer, nameof(keyComparer));
373Requires.NotNullAllowStructs(key, nameof(key));
374Requires.NotNull(keyComparer, nameof(keyComparer));
393Requires.NotNull(valueComparer, nameof(valueComparer));
415Requires.NotNullAllowStructs(pair.Key, nameof(pair.Key));
416Requires.NotNull(keyComparer, nameof(keyComparer));
417Requires.NotNull(valueComparer, nameof(valueComparer));
451Requires.NotNull(tree, nameof(tree));
470Requires.NotNull(tree, nameof(tree));
489Requires.NotNull(tree, nameof(tree));
508Requires.NotNull(tree, nameof(tree));
527Requires.NotNull(tree, nameof(tree));
542Requires.NotNull(tree, nameof(tree));
552Requires.NotNull(tree, nameof(tree));
564Requires.NotNull(tree, nameof(tree));
591Requires.NotNull(items, nameof(items));
592Requires.Range(start >= 0, nameof(start));
593Requires.Range(length >= 0, nameof(length));
System\Collections\Immutable\ImmutableSortedSet_1.cs (15)
68Requires.NotNull(root, nameof(root));
69Requires.NotNull(comparer, nameof(comparer));
224Requires.NotNull(other, nameof(other));
244Requires.NotNull(other, nameof(other));
263Requires.NotNull(other, nameof(other));
292Requires.NotNull(other, nameof(other));
371Requires.NotNull(other, nameof(other));
405Requires.NotNull(other, nameof(other));
455Requires.NotNull(other, nameof(other));
482Requires.NotNull(other, nameof(other));
517Requires.NotNull(other, nameof(other));
537Requires.NotNull(other, nameof(other));
1045Requires.NotNull(items, nameof(items));
1106Requires.NotNull(addedItems, nameof(addedItems));
1238Requires.NotNull(root, nameof(root));
System\Collections\Immutable\ImmutableSortedSet_1.Node.cs (24)
83Requires.NotNull(left, nameof(left));
84Requires.NotNull(right, nameof(right));
206Requires.Range(index >= 0 && index < this.Count, nameof(index));
230Requires.Range(index >= 0 && index < this.Count, nameof(index));
308Requires.NotNull(array, nameof(array));
309Requires.Range(arrayIndex >= 0, nameof(arrayIndex));
310Requires.Range(array.Length >= arrayIndex + this.Count, nameof(arrayIndex));
322Requires.NotNull(array, nameof(array));
323Requires.Range(arrayIndex >= 0, nameof(arrayIndex));
324Requires.Range(array.Length >= arrayIndex + this.Count, nameof(arrayIndex));
341Requires.NotNull(comparer, nameof(comparer));
387Requires.NotNull(comparer, nameof(comparer));
464Requires.NotNull(comparer, nameof(comparer));
491Requires.NotNull(comparer, nameof(comparer));
523Requires.NotNull(comparer, nameof(comparer));
583Requires.NotNull(tree, nameof(tree));
602Requires.NotNull(tree, nameof(tree));
621Requires.NotNull(tree, nameof(tree));
640Requires.NotNull(tree, nameof(tree));
659Requires.NotNull(tree, nameof(tree));
674Requires.NotNull(tree, nameof(tree));
684Requires.NotNull(tree, nameof(tree));
696Requires.NotNull(tree, nameof(tree));
723Requires.NotNull(items, nameof(items));
System\Collections\Immutable\SortedInt32KeyNode.cs (11)
81Requires.NotNull(left, nameof(left));
82Requires.NotNull(right, nameof(right));
160Requires.NotNull(valueComparer, nameof(valueComparer));
264Requires.NotNull(tree, nameof(tree));
283Requires.NotNull(tree, nameof(tree));
302Requires.NotNull(tree, nameof(tree));
321Requires.NotNull(tree, nameof(tree));
340Requires.NotNull(tree, nameof(tree));
355Requires.NotNull(tree, nameof(tree));
365Requires.NotNull(tree, nameof(tree));
377Requires.NotNull(tree, nameof(tree));
System\Linq\ImmutableArrayExtensions.cs (21)
112Requires.NotNull(predicate, nameof(predicate));
138Requires.NotNull(predicate, nameof(predicate));
190Requires.NotNull(items, nameof(items));
221Requires.NotNull(predicate, nameof(predicate));
252Requires.NotNull(func, nameof(func));
275Requires.NotNull(func, nameof(func));
298Requires.NotNull(resultSelector, nameof(resultSelector));
332Requires.NotNull(predicate, nameof(predicate));
377Requires.NotNull(predicate, nameof(predicate));
410Requires.NotNull(predicate, nameof(predicate));
441Requires.NotNull(predicate, nameof(predicate));
473Requires.NotNull(predicate, nameof(predicate));
516Requires.NotNull(predicate, nameof(predicate));
576Requires.NotNull(keySelector, nameof(keySelector));
600Requires.NotNull(keySelector, nameof(keySelector));
601Requires.NotNull(elementSelector, nameof(elementSelector));
639Requires.NotNull(builder, nameof(builder));
654Requires.NotNull(builder, nameof(builder));
665Requires.NotNull(builder, nameof(builder));
680Requires.NotNull(builder, nameof(builder));
690Requires.NotNull(builder, nameof(builder));