134 references to ThrowArgumentOutOfRangeException
System.Private.CoreLib (134)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Array.cs (22)
45
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.newSize, ExceptionResource.ArgumentOutOfRange_NeedNonNegNum);
185
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.len, ExceptionResource.ArgumentOutOfRange_HugeArrayNotSupported);
334
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.length, ExceptionResource.ArgumentOutOfRange_HugeArrayNotSupported);
346
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.sourceIndex, ExceptionResource.ArgumentOutOfRange_HugeArrayNotSupported);
348
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.destinationIndex, ExceptionResource.ArgumentOutOfRange_HugeArrayNotSupported);
350
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.length, ExceptionResource.ArgumentOutOfRange_HugeArrayNotSupported);
886
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.index, ExceptionResource.ArgumentOutOfRange_HugeArrayNotSupported);
897
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.index1, ExceptionResource.ArgumentOutOfRange_HugeArrayNotSupported);
899
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.index2, ExceptionResource.ArgumentOutOfRange_HugeArrayNotSupported);
911
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.index1, ExceptionResource.ArgumentOutOfRange_HugeArrayNotSupported);
913
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.index2, ExceptionResource.ArgumentOutOfRange_HugeArrayNotSupported);
915
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.index3, ExceptionResource.ArgumentOutOfRange_HugeArrayNotSupported);
934
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.index, ExceptionResource.ArgumentOutOfRange_HugeArrayNotSupported);
946
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.index, ExceptionResource.ArgumentOutOfRange_HugeArrayNotSupported);
957
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.index1, ExceptionResource.ArgumentOutOfRange_HugeArrayNotSupported);
959
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.index2, ExceptionResource.ArgumentOutOfRange_HugeArrayNotSupported);
971
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.index1, ExceptionResource.ArgumentOutOfRange_HugeArrayNotSupported);
973
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.index2, ExceptionResource.ArgumentOutOfRange_HugeArrayNotSupported);
975
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.index3, ExceptionResource.ArgumentOutOfRange_HugeArrayNotSupported);
994
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.index, ExceptionResource.ArgumentOutOfRange_HugeArrayNotSupported);
1449
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.index, ExceptionResource.ArgumentOutOfRange_HugeArrayNotSupported);
2003
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.endIndex, ExceptionResource.ArgumentOutOfRange_EndIndexStartIndex);
src\runtime\src\libraries\System.Private.CoreLib\src\System\BitConverter.cs (8)
462
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.startIndex, ExceptionResource.ArgumentOutOfRange_IndexMustBeLess);
500
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.startIndex, ExceptionResource.ArgumentOutOfRange_IndexMustBeLess);
538
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.startIndex, ExceptionResource.ArgumentOutOfRange_IndexMustBeLess);
576
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.startIndex, ExceptionResource.ArgumentOutOfRange_IndexMustBeLess);
702
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.startIndex, ExceptionResource.ArgumentOutOfRange_IndexMustBeLess);
855
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.startIndex, ExceptionResource.ArgumentOutOfRange_IndexMustBeLess);
935
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.startIndex, ExceptionResource.ArgumentOutOfRange_IndexMustBeLess);
937
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.startIndex, ExceptionResource.ArgumentOutOfRange_IndexMustBeLess); // differs from other overloads, which throw base ArgumentException
src\runtime\src\libraries\System.Private.CoreLib\src\System\Char.cs (1)
1160
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.index, ExceptionResource.ArgumentOutOfRange_IndexMustBeLess);
src\runtime\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\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\Generic\Queue.cs (1)
101
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.arrayIndex, ExceptionResource.ArgumentOutOfRange_IndexMustBeLessOrEqual);
src\runtime\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\runtime\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\runtime\src\libraries\System.Private.CoreLib\src\System\IO\BufferedStream.cs (2)
205
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.value, ExceptionResource.ArgumentOutOfRange_NeedNonNegNum);
1236
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.value, ExceptionResource.ArgumentOutOfRange_NeedNonNegNum);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\FileStream.cs (2)
410
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.value, ExceptionResource.ArgumentOutOfRange_NeedNonNegNum);
474
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.value, ExceptionResource.ArgumentOutOfRange_NeedNonNegNum);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\Stream.cs (4)
960
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.offset, ExceptionResource.ArgumentOutOfRange_NeedNonNegNum);
965
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.count, ExceptionResource.Argument_InvalidOffLen);
973
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.minimumBytes, ExceptionResource.ArgumentOutOfRange_NeedNonNegNum);
978
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.minimumBytes, ExceptionResource.ArgumentOutOfRange_NotGreaterThanBufferLength);
src\runtime\src\libraries\System.Private.CoreLib\src\System\String.Searching.cs (8)
168
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.startIndex, ExceptionResource.ArgumentOutOfRange_IndexMustBeLessOrEqual);
173
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.count, ExceptionResource.ArgumentOutOfRange_Count);
208
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.startIndex, ExceptionResource.ArgumentOutOfRange_IndexMustBeLessOrEqual);
213
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.count, ExceptionResource.ArgumentOutOfRange_Count);
468
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.startIndex, ExceptionResource.ArgumentOutOfRange_IndexMustBeLess);
473
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.count, ExceptionResource.ArgumentOutOfRange_Count);
617
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.startIndex, ExceptionResource.ArgumentOutOfRange_IndexMustBeLess);
622
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.count, ExceptionResource.ArgumentOutOfRange_Count);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\ASCIIEncoding.cs (19)
89
ThrowHelper.
ThrowArgumentOutOfRangeException
((index < 0) ? ExceptionArgument.index : ExceptionArgument.count, ExceptionResource.ArgumentOutOfRange_NeedNonNegNum);
94
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.chars, ExceptionResource.ArgumentOutOfRange_IndexCountBuffer);
135
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.count, ExceptionResource.ArgumentOutOfRange_NeedNonNegNum);
221
ThrowHelper.
ThrowArgumentOutOfRangeException
(
228
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.chars, ExceptionResource.ArgumentOutOfRange_IndexCount);
233
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.byteIndex, ExceptionResource.ArgumentOutOfRange_IndexMustBeLessOrEqual);
269
ThrowHelper.
ThrowArgumentOutOfRangeException
(
276
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.chars, ExceptionResource.ArgumentOutOfRange_IndexCount);
281
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.byteIndex, ExceptionResource.ArgumentOutOfRange_IndexMustBeLessOrEqual);
307
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);
560
ThrowHelper.
ThrowArgumentOutOfRangeException
(
567
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.bytes, ExceptionResource.ArgumentOutOfRange_IndexCountBuffer);
572
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.charIndex, ExceptionResource.ArgumentOutOfRange_IndexMustBeLessOrEqual);
598
ThrowHelper.
ThrowArgumentOutOfRangeException
(
737
ThrowHelper.
ThrowArgumentOutOfRangeException
(
744
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.bytes, ExceptionResource.ArgumentOutOfRange_IndexCountBuffer);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\Latin1Encoding.cs (22)
51
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.count, ExceptionResource.ArgumentOutOfRange_NeedNonNegNum);
66
ThrowHelper.
ThrowArgumentOutOfRangeException
((index < 0) ? ExceptionArgument.index : ExceptionArgument.count, ExceptionResource.ArgumentOutOfRange_NeedNonNegNum);
71
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.chars, ExceptionResource.ArgumentOutOfRange_IndexCountBuffer);
186
ThrowHelper.
ThrowArgumentOutOfRangeException
(
205
ThrowHelper.
ThrowArgumentOutOfRangeException
(
212
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.chars, ExceptionResource.ArgumentOutOfRange_IndexCount);
217
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.byteIndex, ExceptionResource.ArgumentOutOfRange_IndexMustBeLessOrEqual);
267
ThrowHelper.
ThrowArgumentOutOfRangeException
(
274
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.s, ExceptionResource.ArgumentOutOfRange_IndexCount);
279
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.byteIndex, ExceptionResource.ArgumentOutOfRange_IndexMustBeLessOrEqual);
343
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.count, ExceptionResource.ArgumentOutOfRange_NeedNonNegNum);
368
ThrowHelper.
ThrowArgumentOutOfRangeException
((index < 0) ? ExceptionArgument.index : ExceptionArgument.count, ExceptionResource.ArgumentOutOfRange_NeedNonNegNum);
373
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.bytes, ExceptionResource.ArgumentOutOfRange_IndexCountBuffer);
400
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.byteCount, ExceptionResource.ArgumentOutOfRange_NeedNonNegNum);
422
ThrowHelper.
ThrowArgumentOutOfRangeException
(
466
ThrowHelper.
ThrowArgumentOutOfRangeException
(
473
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.bytes, ExceptionResource.ArgumentOutOfRange_IndexCountBuffer);
478
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.charIndex, ExceptionResource.ArgumentOutOfRange_IndexMustBeLessOrEqual);
499
ThrowHelper.
ThrowArgumentOutOfRangeException
(
506
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.bytes, ExceptionResource.ArgumentOutOfRange_IndexCountBuffer);
577
ThrowHelper.
ThrowArgumentOutOfRangeException
(
584
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.bytes, ExceptionResource.ArgumentOutOfRange_IndexCountBuffer);
src\runtime\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\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Task.cs (4)
4596
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.continuationOptions, ExceptionResource.Task_ContinueWith_ESandLR);
4610
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.continuationOptions, ExceptionResource.Task_ContinueWith_NotOnAnything);
5930
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.millisecondsDelay, ExceptionResource.Task_Delay_InvalidMillisecondsDelay);
5947
ThrowHelper.
ThrowArgumentOutOfRangeException
(argument, ExceptionResource.Task_InvalidTimerTimeSpan);