134 references to ThrowArgumentOutOfRangeException
System.Private.CoreLib (134)
src\libraries\System.Private.CoreLib\src\System\Array.cs (22)
44
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.newSize, ExceptionResource.ArgumentOutOfRange_NeedNonNegNum);
184
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.len, ExceptionResource.ArgumentOutOfRange_HugeArrayNotSupported);
333
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.length, ExceptionResource.ArgumentOutOfRange_HugeArrayNotSupported);
345
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.sourceIndex, ExceptionResource.ArgumentOutOfRange_HugeArrayNotSupported);
347
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.destinationIndex, ExceptionResource.ArgumentOutOfRange_HugeArrayNotSupported);
349
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.length, ExceptionResource.ArgumentOutOfRange_HugeArrayNotSupported);
494
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.index, ExceptionResource.ArgumentOutOfRange_HugeArrayNotSupported);
505
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.index1, ExceptionResource.ArgumentOutOfRange_HugeArrayNotSupported);
507
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.index2, ExceptionResource.ArgumentOutOfRange_HugeArrayNotSupported);
519
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.index1, ExceptionResource.ArgumentOutOfRange_HugeArrayNotSupported);
521
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.index2, ExceptionResource.ArgumentOutOfRange_HugeArrayNotSupported);
523
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.index3, ExceptionResource.ArgumentOutOfRange_HugeArrayNotSupported);
542
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.index, ExceptionResource.ArgumentOutOfRange_HugeArrayNotSupported);
554
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.index, ExceptionResource.ArgumentOutOfRange_HugeArrayNotSupported);
565
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.index1, ExceptionResource.ArgumentOutOfRange_HugeArrayNotSupported);
567
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.index2, ExceptionResource.ArgumentOutOfRange_HugeArrayNotSupported);
579
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.index1, ExceptionResource.ArgumentOutOfRange_HugeArrayNotSupported);
581
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.index2, ExceptionResource.ArgumentOutOfRange_HugeArrayNotSupported);
583
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.index3, ExceptionResource.ArgumentOutOfRange_HugeArrayNotSupported);
602
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.index, ExceptionResource.ArgumentOutOfRange_HugeArrayNotSupported);
1057
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.index, ExceptionResource.ArgumentOutOfRange_HugeArrayNotSupported);
1599
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.endIndex, ExceptionResource.ArgumentOutOfRange_EndIndexStartIndex);
src\libraries\System.Private.CoreLib\src\System\BitConverter.cs (8)
420
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.startIndex, ExceptionResource.ArgumentOutOfRange_IndexMustBeLess);
458
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.startIndex, ExceptionResource.ArgumentOutOfRange_IndexMustBeLess);
496
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.startIndex, ExceptionResource.ArgumentOutOfRange_IndexMustBeLess);
534
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.startIndex, ExceptionResource.ArgumentOutOfRange_IndexMustBeLess);
660
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.startIndex, ExceptionResource.ArgumentOutOfRange_IndexMustBeLess);
788
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.startIndex, ExceptionResource.ArgumentOutOfRange_IndexMustBeLess);
868
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.startIndex, ExceptionResource.ArgumentOutOfRange_IndexMustBeLess);
870
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.startIndex, ExceptionResource.ArgumentOutOfRange_IndexMustBeLess); // differs from other overloads, which throw base ArgumentException
src\libraries\System.Private.CoreLib\src\System\Char.cs (1)
1108
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.index, ExceptionResource.ArgumentOutOfRange_IndexMustBeLess);
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\List.cs (12)
49
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.capacity, ExceptionResource.ArgumentOutOfRange_NeedNonNegNum);
104
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.value, ExceptionResource.ArgumentOutOfRange_SmallCapacity);
305
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.count, ExceptionResource.ArgumentOutOfRange_NeedNonNegNum);
437
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.capacity, ExceptionResource.ArgumentOutOfRange_NeedNonNegNum);
682
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.count, ExceptionResource.ArgumentOutOfRange_NeedNonNegNum);
775
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.index, ExceptionResource.ArgumentOutOfRange_ListInsert);
917
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.count, ExceptionResource.ArgumentOutOfRange_NeedNonNegNum);
927
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.index, ExceptionResource.ArgumentOutOfRange_BiggerThanCollection);
932
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.count, ExceptionResource.ArgumentOutOfRange_BiggerThanCollection);
1029
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.count, ExceptionResource.ArgumentOutOfRange_NeedNonNegNum);
1069
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.count, ExceptionResource.ArgumentOutOfRange_NeedNonNegNum);
1109
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.count, ExceptionResource.ArgumentOutOfRange_NeedNonNegNum);
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\Queue.cs (1)
101
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.arrayIndex, ExceptionResource.ArgumentOutOfRange_IndexMustBeLessOrEqual);
src\libraries\System.Private.CoreLib\src\System\Globalization\CompareInfo.cs (6)
880
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.startIndex, ExceptionResource.ArgumentOutOfRange_IndexMustBeLessOrEqual);
884
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.count, ExceptionResource.ArgumentOutOfRange_Count);
914
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.startIndex, ExceptionResource.ArgumentOutOfRange_IndexMustBeLessOrEqual);
918
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.count, ExceptionResource.ArgumentOutOfRange_Count);
1225
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.startIndex, ExceptionResource.ArgumentOutOfRange_IndexMustBeLess);
1285
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.startIndex, ExceptionResource.ArgumentOutOfRange_IndexMustBeLess);
src\libraries\System.Private.CoreLib\src\System\Globalization\Ordinal.cs (4)
316
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.startIndex, ExceptionResource.ArgumentOutOfRange_IndexMustBeLessOrEqual);
320
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.count, ExceptionResource.ArgumentOutOfRange_Count);
640
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.startIndex, ExceptionResource.ArgumentOutOfRange_IndexMustBeLessOrEqual);
644
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.count, ExceptionResource.ArgumentOutOfRange_Count);
src\libraries\System.Private.CoreLib\src\System\IO\BufferedStream.cs (2)
205
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.value, ExceptionResource.ArgumentOutOfRange_NeedNonNegNum);
1232
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.value, ExceptionResource.ArgumentOutOfRange_NeedNonNegNum);
src\libraries\System.Private.CoreLib\src\System\IO\FileStream.cs (2)
424
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.value, ExceptionResource.ArgumentOutOfRange_NeedNonNegNum);
488
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.value, ExceptionResource.ArgumentOutOfRange_NeedNonNegNum);
src\libraries\System.Private.CoreLib\src\System\IO\Stream.cs (4)
957
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.offset, ExceptionResource.ArgumentOutOfRange_NeedNonNegNum);
962
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.count, ExceptionResource.Argument_InvalidOffLen);
970
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.minimumBytes, ExceptionResource.ArgumentOutOfRange_NeedNonNegNum);
975
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.minimumBytes, ExceptionResource.ArgumentOutOfRange_NotGreaterThanBufferLength);
src\libraries\System.Private.CoreLib\src\System\String.Searching.cs (8)
90
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.startIndex, ExceptionResource.ArgumentOutOfRange_IndexMustBeLessOrEqual);
95
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.count, ExceptionResource.ArgumentOutOfRange_Count);
130
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.startIndex, ExceptionResource.ArgumentOutOfRange_IndexMustBeLessOrEqual);
135
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.count, ExceptionResource.ArgumentOutOfRange_Count);
286
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.startIndex, ExceptionResource.ArgumentOutOfRange_IndexMustBeLess);
291
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.count, ExceptionResource.ArgumentOutOfRange_Count);
334
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.startIndex, ExceptionResource.ArgumentOutOfRange_IndexMustBeLess);
339
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.count, ExceptionResource.ArgumentOutOfRange_Count);
src\libraries\System.Private.CoreLib\src\System\Text\ASCIIEncoding.cs (19)
88
ThrowHelper.
ThrowArgumentOutOfRangeException
((index < 0) ? ExceptionArgument.index : ExceptionArgument.count, ExceptionResource.ArgumentOutOfRange_NeedNonNegNum);
93
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.chars, ExceptionResource.ArgumentOutOfRange_IndexCountBuffer);
134
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.count, ExceptionResource.ArgumentOutOfRange_NeedNonNegNum);
220
ThrowHelper.
ThrowArgumentOutOfRangeException
(
227
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.chars, ExceptionResource.ArgumentOutOfRange_IndexCount);
232
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.byteIndex, ExceptionResource.ArgumentOutOfRange_IndexMustBeLessOrEqual);
268
ThrowHelper.
ThrowArgumentOutOfRangeException
(
275
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.chars, ExceptionResource.ArgumentOutOfRange_IndexCount);
280
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.byteIndex, ExceptionResource.ArgumentOutOfRange_IndexMustBeLessOrEqual);
306
ThrowHelper.
ThrowArgumentOutOfRangeException
(
448
ThrowHelper.
ThrowArgumentOutOfRangeException
((index < 0) ? ExceptionArgument.index : ExceptionArgument.count, ExceptionResource.ArgumentOutOfRange_NeedNonNegNum);
453
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.bytes, ExceptionResource.ArgumentOutOfRange_IndexCountBuffer);
476
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.count, ExceptionResource.ArgumentOutOfRange_NeedNonNegNum);
559
ThrowHelper.
ThrowArgumentOutOfRangeException
(
566
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.bytes, ExceptionResource.ArgumentOutOfRange_IndexCountBuffer);
571
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.charIndex, ExceptionResource.ArgumentOutOfRange_IndexMustBeLessOrEqual);
597
ThrowHelper.
ThrowArgumentOutOfRangeException
(
736
ThrowHelper.
ThrowArgumentOutOfRangeException
(
743
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.bytes, ExceptionResource.ArgumentOutOfRange_IndexCountBuffer);
src\libraries\System.Private.CoreLib\src\System\Text\Latin1Encoding.cs (22)
50
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.count, ExceptionResource.ArgumentOutOfRange_NeedNonNegNum);
65
ThrowHelper.
ThrowArgumentOutOfRangeException
((index < 0) ? ExceptionArgument.index : ExceptionArgument.count, ExceptionResource.ArgumentOutOfRange_NeedNonNegNum);
70
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.chars, ExceptionResource.ArgumentOutOfRange_IndexCountBuffer);
185
ThrowHelper.
ThrowArgumentOutOfRangeException
(
204
ThrowHelper.
ThrowArgumentOutOfRangeException
(
211
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.chars, ExceptionResource.ArgumentOutOfRange_IndexCount);
216
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.byteIndex, ExceptionResource.ArgumentOutOfRange_IndexMustBeLessOrEqual);
266
ThrowHelper.
ThrowArgumentOutOfRangeException
(
273
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.s, ExceptionResource.ArgumentOutOfRange_IndexCount);
278
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.byteIndex, ExceptionResource.ArgumentOutOfRange_IndexMustBeLessOrEqual);
342
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.count, ExceptionResource.ArgumentOutOfRange_NeedNonNegNum);
367
ThrowHelper.
ThrowArgumentOutOfRangeException
((index < 0) ? ExceptionArgument.index : ExceptionArgument.count, ExceptionResource.ArgumentOutOfRange_NeedNonNegNum);
372
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.bytes, ExceptionResource.ArgumentOutOfRange_IndexCountBuffer);
399
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.byteCount, ExceptionResource.ArgumentOutOfRange_NeedNonNegNum);
421
ThrowHelper.
ThrowArgumentOutOfRangeException
(
465
ThrowHelper.
ThrowArgumentOutOfRangeException
(
472
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.bytes, ExceptionResource.ArgumentOutOfRange_IndexCountBuffer);
477
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.charIndex, ExceptionResource.ArgumentOutOfRange_IndexMustBeLessOrEqual);
498
ThrowHelper.
ThrowArgumentOutOfRangeException
(
505
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.bytes, ExceptionResource.ArgumentOutOfRange_IndexCountBuffer);
576
ThrowHelper.
ThrowArgumentOutOfRangeException
(
583
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.bytes, ExceptionResource.ArgumentOutOfRange_IndexCountBuffer);
src\libraries\System.Private.CoreLib\src\System\Text\UTF8Encoding.cs (19)
138
ThrowHelper.
ThrowArgumentOutOfRangeException
((index < 0) ? ExceptionArgument.index : ExceptionArgument.count, ExceptionResource.ArgumentOutOfRange_NeedNonNegNum);
143
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.chars, ExceptionResource.ArgumentOutOfRange_IndexCountBuffer);
184
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.count, ExceptionResource.ArgumentOutOfRange_NeedNonNegNum);
267
ThrowHelper.
ThrowArgumentOutOfRangeException
(
274
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.s, ExceptionResource.ArgumentOutOfRange_IndexCount);
279
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.byteIndex, ExceptionResource.ArgumentOutOfRange_IndexMustBeLessOrEqual);
315
ThrowHelper.
ThrowArgumentOutOfRangeException
(
322
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.chars, ExceptionResource.ArgumentOutOfRange_IndexCount);
327
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.byteIndex, ExceptionResource.ArgumentOutOfRange_IndexMustBeLessOrEqual);
353
ThrowHelper.
ThrowArgumentOutOfRangeException
(
449
ThrowHelper.
ThrowArgumentOutOfRangeException
((index < 0) ? ExceptionArgument.index : ExceptionArgument.count, ExceptionResource.ArgumentOutOfRange_NeedNonNegNum);
454
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.bytes, ExceptionResource.ArgumentOutOfRange_IndexCountBuffer);
477
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.count, ExceptionResource.ArgumentOutOfRange_NeedNonNegNum);
510
ThrowHelper.
ThrowArgumentOutOfRangeException
(
517
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.bytes, ExceptionResource.ArgumentOutOfRange_IndexCountBuffer);
522
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.charIndex, ExceptionResource.ArgumentOutOfRange_IndexMustBeLessOrEqual);
548
ThrowHelper.
ThrowArgumentOutOfRangeException
(
686
ThrowHelper.
ThrowArgumentOutOfRangeException
(
693
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.bytes, ExceptionResource.ArgumentOutOfRange_IndexCountBuffer);
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Task.cs (4)
4420
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.continuationOptions, ExceptionResource.Task_ContinueWith_ESandLR);
4434
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.continuationOptions, ExceptionResource.Task_ContinueWith_NotOnAnything);
5771
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.millisecondsDelay, ExceptionResource.Task_Delay_InvalidMillisecondsDelay);
5788
ThrowHelper.
ThrowArgumentOutOfRangeException
(argument, ExceptionResource.Task_InvalidTimerTimeSpan);