70 references to ThrowArgumentException
System.Private.CoreLib (70)
src\libraries\System.Private.CoreLib\src\System\Array.cs (26)
126
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Arg_NeedAtLeast1Rank);
152
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Arg_RanksAndBounds);
154
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Arg_NeedAtLeast1Rank);
256
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Arg_RankIndices);
302
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Arg_RanksAndBounds);
312
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Arg_RankIndices);
315
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Arg_NonZeroLowerBound);
814
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Arg_RankIndices);
822
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Arg_Need1DArray);
830
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Arg_Need2DArray);
838
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Arg_Need3DArray);
846
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Arg_Need1DArray);
854
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Arg_Need2DArray);
862
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Arg_Need3DArray);
872
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Arg_RankIndices);
920
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Arg_RankIndices);
980
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Arg_RankIndices);
1239
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Argument_InvalidOffLen);
1400
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Argument_InvalidOffLen);
1435
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Arg_RankMultiDimNotSupported);
2221
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Argument_InvalidOffLen);
2292
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Argument_InvalidOffLen);
2399
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Arg_LowerBoundsMustMatch);
2406
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Argument_InvalidOffLen);
2543
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Argument_InvalidOffLen);
2561
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Argument_InvalidOffLen);
src\libraries\System.Private.CoreLib\src\System\Collections\Concurrent\ConcurrentQueue.cs (1)
457
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Arg_ArrayPlusOffTooSmall);
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\Comparer.cs (1)
30
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Argument_InvalidArgumentForComparison);
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\Dictionary.cs (12)
356
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Arg_ArrayPlusOffTooSmall);
1471
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Arg_RankMultiDimNotSupported);
1476
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Arg_NonZeroLowerBound);
1486
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Arg_ArrayPlusOffTooSmall);
1915
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Arg_ArrayPlusOffTooSmall);
1960
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Arg_RankMultiDimNotSupported);
1965
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Arg_NonZeroLowerBound);
1975
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Arg_ArrayPlusOffTooSmall);
2110
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Arg_ArrayPlusOffTooSmall);
2154
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Arg_RankMultiDimNotSupported);
2159
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Arg_NonZeroLowerBound);
2169
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Arg_ArrayPlusOffTooSmall);
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\EqualityComparer.cs (2)
44
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Argument_InvalidArgumentForComparison);
53
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Argument_InvalidArgumentForComparison);
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\HashSet.cs (1)
1192
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Arg_ArrayPlusOffTooSmall);
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\List.cs (7)
307
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Argument_InvalidOffLen);
391
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Arg_RankMultiDimNotSupported);
413
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Argument_InvalidOffLen);
687
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Argument_InvalidOffLen);
1033
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Argument_InvalidOffLen);
1073
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Argument_InvalidOffLen);
1113
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Argument_InvalidOffLen);
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\Queue.cs (2)
106
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Argument_InvalidOffLen);
143
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Argument_InvalidOffLen);
src\libraries\System.Private.CoreLib\src\System\Collections\ObjectModel\Collection.cs (3)
179
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Arg_RankMultiDimNotSupported);
184
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Arg_NonZeroLowerBound);
194
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Arg_ArrayPlusOffTooSmall);
src\libraries\System.Private.CoreLib\src\System\Collections\ObjectModel\ReadOnlyCollection.cs (3)
110
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Arg_RankMultiDimNotSupported);
115
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Arg_NonZeroLowerBound);
125
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Arg_ArrayPlusOffTooSmall);
src\libraries\System.Private.CoreLib\src\System\IO\Stream.cs (2)
284
ThrowHelper.
ThrowArgumentException
(ExceptionResource.InvalidOperation_WrongAsyncResultOrEndCalledMultiple);
600
ThrowHelper.
ThrowArgumentException
(ExceptionResource.InvalidOperation_WrongAsyncResultOrEndCalledMultiple);
src\libraries\System.Private.CoreLib\src\System\MemoryExtensions.cs (6)
4379
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Argument_SpansMustHaveSameLength);
4405
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Argument_SpansMustHaveSameLength);
4601
ThrowHelper.
ThrowArgumentException
(ExceptionResource.InvalidOperation_SpanOverlappedOperation);
4685
ThrowHelper.
ThrowArgumentException
(ExceptionResource.InvalidOperation_SpanOverlappedOperation);
4782
ThrowHelper.
ThrowArgumentException
(ExceptionResource.InvalidOperation_SpanOverlappedOperation);
4832
ThrowHelper.
ThrowArgumentException
(ExceptionResource.InvalidOperation_SpanOverlappedOperation);
src\libraries\System.Private.CoreLib\src\System\Numerics\TotalOrderIeee754Comparer.cs (1)
197
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Argument_InvalidArgumentForComparison);
src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\ConditionalWeakTable.cs (1)
80
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Argument_AddingDuplicate);
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\NativeMemory.Unix.cs (2)
29
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Argument_AlignmentMustBePow2);
90
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Argument_AlignmentMustBePow2);