134 references to ThrowArgumentOutOfRangeException
System.Private.CoreLib (134)
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\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\libraries\System.Private.CoreLib\src\System\Char.cs (1)
1160
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)
882
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.startIndex, ExceptionResource.ArgumentOutOfRange_IndexMustBeLessOrEqual);
886
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.count, ExceptionResource.ArgumentOutOfRange_Count);
916
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.startIndex, ExceptionResource.ArgumentOutOfRange_IndexMustBeLessOrEqual);
920
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.count, ExceptionResource.ArgumentOutOfRange_Count);
1229
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.startIndex, ExceptionResource.ArgumentOutOfRange_IndexMustBeLess);
1289
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);
1236
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.value, ExceptionResource.ArgumentOutOfRange_NeedNonNegNum);
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\libraries\System.Private.CoreLib\src\System\IO\Stream.cs (4)
959
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.offset, ExceptionResource.ArgumentOutOfRange_NeedNonNegNum);
964
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.count, ExceptionResource.Argument_InvalidOffLen);
972
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.minimumBytes, ExceptionResource.ArgumentOutOfRange_NeedNonNegNum);
977
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.minimumBytes, ExceptionResource.ArgumentOutOfRange_NotGreaterThanBufferLength);
src\libraries\System.Private.CoreLib\src\System\String.Searching.cs (8)
163
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.startIndex, ExceptionResource.ArgumentOutOfRange_IndexMustBeLessOrEqual);
168
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.count, ExceptionResource.ArgumentOutOfRange_Count);
203
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.startIndex, ExceptionResource.ArgumentOutOfRange_IndexMustBeLessOrEqual);
208
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.count, ExceptionResource.ArgumentOutOfRange_Count);
462
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.startIndex, ExceptionResource.ArgumentOutOfRange_IndexMustBeLess);
467
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.count, ExceptionResource.ArgumentOutOfRange_Count);
611
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.startIndex, ExceptionResource.ArgumentOutOfRange_IndexMustBeLess);
616
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.count, ExceptionResource.ArgumentOutOfRange_Count);
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);
136
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.count, ExceptionResource.ArgumentOutOfRange_NeedNonNegNum);
224
ThrowHelper.
ThrowArgumentOutOfRangeException
(
231
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.chars, ExceptionResource.ArgumentOutOfRange_IndexCount);
236
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.byteIndex, ExceptionResource.ArgumentOutOfRange_IndexMustBeLessOrEqual);
272
ThrowHelper.
ThrowArgumentOutOfRangeException
(
279
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.chars, ExceptionResource.ArgumentOutOfRange_IndexCount);
284
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.byteIndex, ExceptionResource.ArgumentOutOfRange_IndexMustBeLessOrEqual);
311
ThrowHelper.
ThrowArgumentOutOfRangeException
(
455
ThrowHelper.
ThrowArgumentOutOfRangeException
((index < 0) ? ExceptionArgument.index : ExceptionArgument.count, ExceptionResource.ArgumentOutOfRange_NeedNonNegNum);
460
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.bytes, ExceptionResource.ArgumentOutOfRange_IndexCountBuffer);
484
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.count, ExceptionResource.ArgumentOutOfRange_NeedNonNegNum);
569
ThrowHelper.
ThrowArgumentOutOfRangeException
(
576
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.bytes, ExceptionResource.ArgumentOutOfRange_IndexCountBuffer);
581
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.charIndex, ExceptionResource.ArgumentOutOfRange_IndexMustBeLessOrEqual);
608
ThrowHelper.
ThrowArgumentOutOfRangeException
(
749
ThrowHelper.
ThrowArgumentOutOfRangeException
(
756
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.bytes, ExceptionResource.ArgumentOutOfRange_IndexCountBuffer);
src\libraries\System.Private.CoreLib\src\System\Text\Latin1Encoding.cs (22)
52
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.count, ExceptionResource.ArgumentOutOfRange_NeedNonNegNum);
67
ThrowHelper.
ThrowArgumentOutOfRangeException
((index < 0) ? ExceptionArgument.index : ExceptionArgument.count, ExceptionResource.ArgumentOutOfRange_NeedNonNegNum);
72
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.chars, ExceptionResource.ArgumentOutOfRange_IndexCountBuffer);
190
ThrowHelper.
ThrowArgumentOutOfRangeException
(
209
ThrowHelper.
ThrowArgumentOutOfRangeException
(
216
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.chars, ExceptionResource.ArgumentOutOfRange_IndexCount);
221
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.byteIndex, ExceptionResource.ArgumentOutOfRange_IndexMustBeLessOrEqual);
271
ThrowHelper.
ThrowArgumentOutOfRangeException
(
278
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.s, ExceptionResource.ArgumentOutOfRange_IndexCount);
283
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.byteIndex, ExceptionResource.ArgumentOutOfRange_IndexMustBeLessOrEqual);
350
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.count, ExceptionResource.ArgumentOutOfRange_NeedNonNegNum);
375
ThrowHelper.
ThrowArgumentOutOfRangeException
((index < 0) ? ExceptionArgument.index : ExceptionArgument.count, ExceptionResource.ArgumentOutOfRange_NeedNonNegNum);
380
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.bytes, ExceptionResource.ArgumentOutOfRange_IndexCountBuffer);
408
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.byteCount, ExceptionResource.ArgumentOutOfRange_NeedNonNegNum);
431
ThrowHelper.
ThrowArgumentOutOfRangeException
(
475
ThrowHelper.
ThrowArgumentOutOfRangeException
(
482
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.bytes, ExceptionResource.ArgumentOutOfRange_IndexCountBuffer);
487
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.charIndex, ExceptionResource.ArgumentOutOfRange_IndexMustBeLessOrEqual);
508
ThrowHelper.
ThrowArgumentOutOfRangeException
(
515
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.bytes, ExceptionResource.ArgumentOutOfRange_IndexCountBuffer);
586
ThrowHelper.
ThrowArgumentOutOfRangeException
(
593
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);
185
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.count, ExceptionResource.ArgumentOutOfRange_NeedNonNegNum);
270
ThrowHelper.
ThrowArgumentOutOfRangeException
(
277
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.s, ExceptionResource.ArgumentOutOfRange_IndexCount);
282
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.byteIndex, ExceptionResource.ArgumentOutOfRange_IndexMustBeLessOrEqual);
318
ThrowHelper.
ThrowArgumentOutOfRangeException
(
325
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.chars, ExceptionResource.ArgumentOutOfRange_IndexCount);
330
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.byteIndex, ExceptionResource.ArgumentOutOfRange_IndexMustBeLessOrEqual);
357
ThrowHelper.
ThrowArgumentOutOfRangeException
(
455
ThrowHelper.
ThrowArgumentOutOfRangeException
((index < 0) ? ExceptionArgument.index : ExceptionArgument.count, ExceptionResource.ArgumentOutOfRange_NeedNonNegNum);
460
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.bytes, ExceptionResource.ArgumentOutOfRange_IndexCountBuffer);
484
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.count, ExceptionResource.ArgumentOutOfRange_NeedNonNegNum);
517
ThrowHelper.
ThrowArgumentOutOfRangeException
(
524
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.bytes, ExceptionResource.ArgumentOutOfRange_IndexCountBuffer);
529
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.charIndex, ExceptionResource.ArgumentOutOfRange_IndexMustBeLessOrEqual);
556
ThrowHelper.
ThrowArgumentOutOfRangeException
(
696
ThrowHelper.
ThrowArgumentOutOfRangeException
(
703
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.bytes, ExceptionResource.ArgumentOutOfRange_IndexCountBuffer);
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Task.cs (4)
4500
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.continuationOptions, ExceptionResource.Task_ContinueWith_ESandLR);
4514
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.continuationOptions, ExceptionResource.Task_ContinueWith_NotOnAnything);
5833
ThrowHelper.
ThrowArgumentOutOfRangeException
(ExceptionArgument.millisecondsDelay, ExceptionResource.Task_Delay_InvalidMillisecondsDelay);
5850
ThrowHelper.
ThrowArgumentOutOfRangeException
(argument, ExceptionResource.Task_InvalidTimerTimeSpan);