133 references to ThrowArgumentOutOfRangeException
System.Private.CoreLib (133)
src\libraries\System.Private.CoreLib\src\System\Array.cs (22)
46
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.newSize, ExceptionResource.ArgumentOutOfRange_NeedNonNegNum);
186
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.len, ExceptionResource.ArgumentOutOfRange_HugeArrayNotSupported);
335
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.length, ExceptionResource.ArgumentOutOfRange_HugeArrayNotSupported);
347
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.sourceIndex, ExceptionResource.ArgumentOutOfRange_HugeArrayNotSupported);
349
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.destinationIndex, ExceptionResource.ArgumentOutOfRange_HugeArrayNotSupported);
351
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.length, ExceptionResource.ArgumentOutOfRange_HugeArrayNotSupported);
496
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.index, ExceptionResource.ArgumentOutOfRange_HugeArrayNotSupported);
507
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.index1, ExceptionResource.ArgumentOutOfRange_HugeArrayNotSupported);
509
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.index2, ExceptionResource.ArgumentOutOfRange_HugeArrayNotSupported);
521
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.index1, ExceptionResource.ArgumentOutOfRange_HugeArrayNotSupported);
523
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.index2, ExceptionResource.ArgumentOutOfRange_HugeArrayNotSupported);
525
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.index3, ExceptionResource.ArgumentOutOfRange_HugeArrayNotSupported);
544
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.index, ExceptionResource.ArgumentOutOfRange_HugeArrayNotSupported);
556
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.index, ExceptionResource.ArgumentOutOfRange_HugeArrayNotSupported);
567
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.index1, ExceptionResource.ArgumentOutOfRange_HugeArrayNotSupported);
569
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.index2, ExceptionResource.ArgumentOutOfRange_HugeArrayNotSupported);
581
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.index1, ExceptionResource.ArgumentOutOfRange_HugeArrayNotSupported);
583
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.index2, ExceptionResource.ArgumentOutOfRange_HugeArrayNotSupported);
585
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.index3, ExceptionResource.ArgumentOutOfRange_HugeArrayNotSupported);
604
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.index, ExceptionResource.ArgumentOutOfRange_HugeArrayNotSupported);
1063
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.index, ExceptionResource.ArgumentOutOfRange_HugeArrayNotSupported);
1608
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.endIndex, ExceptionResource.ArgumentOutOfRange_EndIndexStartIndex);
src\libraries\System.Private.CoreLib\src\System\BitConverter.cs (8)
425
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.startIndex, ExceptionResource.ArgumentOutOfRange_IndexMustBeLess);
463
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.startIndex, ExceptionResource.ArgumentOutOfRange_IndexMustBeLess);
501
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.startIndex, ExceptionResource.ArgumentOutOfRange_IndexMustBeLess);
539
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.startIndex, ExceptionResource.ArgumentOutOfRange_IndexMustBeLess);
665
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.startIndex, ExceptionResource.ArgumentOutOfRange_IndexMustBeLess);
793
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.startIndex, ExceptionResource.ArgumentOutOfRange_IndexMustBeLess);
873
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.startIndex, ExceptionResource.ArgumentOutOfRange_IndexMustBeLess);
875
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\Globalization\CompareInfo.cs (6)
890
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.startIndex, ExceptionResource.ArgumentOutOfRange_IndexMustBeLessOrEqual);
894
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.count, ExceptionResource.ArgumentOutOfRange_Count);
924
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.startIndex, ExceptionResource.ArgumentOutOfRange_IndexMustBeLessOrEqual);
928
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.count, ExceptionResource.ArgumentOutOfRange_Count);
1239
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.startIndex, ExceptionResource.ArgumentOutOfRange_IndexMustBeLess);
1299
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)
965
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.offset, ExceptionResource.ArgumentOutOfRange_NeedNonNegNum);
970
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.count, ExceptionResource.Argument_InvalidOffLen);
978
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.minimumBytes, ExceptionResource.ArgumentOutOfRange_NeedNonNegNum);
983
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.minimumBytes, ExceptionResource.ArgumentOutOfRange_NotGreaterThanBufferLength);
src\libraries\System.Private.CoreLib\src\System\String.Searching.cs (8)
101
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.startIndex, ExceptionResource.ArgumentOutOfRange_IndexMustBeLessOrEqual);
106
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.count, ExceptionResource.ArgumentOutOfRange_Count);
141
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.startIndex, ExceptionResource.ArgumentOutOfRange_IndexMustBeLessOrEqual);
146
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.count, ExceptionResource.ArgumentOutOfRange_Count);
310
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.startIndex, ExceptionResource.ArgumentOutOfRange_IndexMustBeLess);
315
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.count, ExceptionResource.ArgumentOutOfRange_Count);
358
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.startIndex, ExceptionResource.ArgumentOutOfRange_IndexMustBeLess);
363
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)
4395
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.continuationOptions, ExceptionResource.Task_ContinueWith_ESandLR);
4409
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.continuationOptions, ExceptionResource.Task_ContinueWith_NotOnAnything);
5721
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.millisecondsDelay, ExceptionResource.Task_Delay_InvalidMillisecondsDelay);
5738
ThrowHelper.
ThrowArgumentOutOfRangeException
(argument, ExceptionResource.Task_InvalidTimerTimeSpan);