76 references to ThrowArgumentException
System.Private.CoreLib (76)
src\libraries\System.Private.CoreLib\src\System\Array.cs (26)
126ThrowHelper.ThrowArgumentException(ExceptionResource.Arg_NeedAtLeast1Rank); 152ThrowHelper.ThrowArgumentException(ExceptionResource.Arg_RanksAndBounds); 154ThrowHelper.ThrowArgumentException(ExceptionResource.Arg_NeedAtLeast1Rank); 256ThrowHelper.ThrowArgumentException(ExceptionResource.Arg_RankIndices); 302ThrowHelper.ThrowArgumentException(ExceptionResource.Arg_RanksAndBounds); 312ThrowHelper.ThrowArgumentException(ExceptionResource.Arg_RankIndices); 315ThrowHelper.ThrowArgumentException(ExceptionResource.Arg_NonZeroLowerBound); 819ThrowHelper.ThrowArgumentException(ExceptionResource.Arg_RankIndices); 827ThrowHelper.ThrowArgumentException(ExceptionResource.Arg_Need1DArray); 835ThrowHelper.ThrowArgumentException(ExceptionResource.Arg_Need2DArray); 843ThrowHelper.ThrowArgumentException(ExceptionResource.Arg_Need3DArray); 851ThrowHelper.ThrowArgumentException(ExceptionResource.Arg_Need1DArray); 859ThrowHelper.ThrowArgumentException(ExceptionResource.Arg_Need2DArray); 867ThrowHelper.ThrowArgumentException(ExceptionResource.Arg_Need3DArray); 877ThrowHelper.ThrowArgumentException(ExceptionResource.Arg_RankIndices); 925ThrowHelper.ThrowArgumentException(ExceptionResource.Arg_RankIndices); 985ThrowHelper.ThrowArgumentException(ExceptionResource.Arg_RankIndices); 1244ThrowHelper.ThrowArgumentException(ExceptionResource.Argument_InvalidOffLen); 1405ThrowHelper.ThrowArgumentException(ExceptionResource.Argument_InvalidOffLen); 1440ThrowHelper.ThrowArgumentException(ExceptionResource.Arg_RankMultiDimNotSupported); 2238ThrowHelper.ThrowArgumentException(ExceptionResource.Argument_InvalidOffLen); 2309ThrowHelper.ThrowArgumentException(ExceptionResource.Argument_InvalidOffLen); 2416ThrowHelper.ThrowArgumentException(ExceptionResource.Arg_LowerBoundsMustMatch); 2423ThrowHelper.ThrowArgumentException(ExceptionResource.Argument_InvalidOffLen); 2560ThrowHelper.ThrowArgumentException(ExceptionResource.Argument_InvalidOffLen); 2578ThrowHelper.ThrowArgumentException(ExceptionResource.Argument_InvalidOffLen);
src\libraries\System.Private.CoreLib\src\System\Collections\Concurrent\ConcurrentDictionary.cs (2)
1834ThrowHelper.ThrowArgumentException(ExceptionResource.ConcurrentDictionary_TypeOfValueIncorrect); 1839ThrowHelper.ThrowArgumentException(ExceptionResource.ConcurrentDictionary_TypeOfValueIncorrect);
src\libraries\System.Private.CoreLib\src\System\Collections\Concurrent\ConcurrentQueue.cs (1)
457ThrowHelper.ThrowArgumentException(ExceptionResource.Arg_ArrayPlusOffTooSmall);
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\Comparer.cs (1)
30ThrowHelper.ThrowArgumentException(ExceptionResource.Argument_InvalidArgumentForComparison);
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\Dictionary.cs (12)
356ThrowHelper.ThrowArgumentException(ExceptionResource.Arg_ArrayPlusOffTooSmall); 1472ThrowHelper.ThrowArgumentException(ExceptionResource.Arg_RankMultiDimNotSupported); 1477ThrowHelper.ThrowArgumentException(ExceptionResource.Arg_NonZeroLowerBound); 1487ThrowHelper.ThrowArgumentException(ExceptionResource.Arg_ArrayPlusOffTooSmall); 1916ThrowHelper.ThrowArgumentException(ExceptionResource.Arg_ArrayPlusOffTooSmall); 1961ThrowHelper.ThrowArgumentException(ExceptionResource.Arg_RankMultiDimNotSupported); 1966ThrowHelper.ThrowArgumentException(ExceptionResource.Arg_NonZeroLowerBound); 1976ThrowHelper.ThrowArgumentException(ExceptionResource.Arg_ArrayPlusOffTooSmall); 2111ThrowHelper.ThrowArgumentException(ExceptionResource.Arg_ArrayPlusOffTooSmall); 2155ThrowHelper.ThrowArgumentException(ExceptionResource.Arg_RankMultiDimNotSupported); 2160ThrowHelper.ThrowArgumentException(ExceptionResource.Arg_NonZeroLowerBound); 2170ThrowHelper.ThrowArgumentException(ExceptionResource.Arg_ArrayPlusOffTooSmall);
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\EqualityComparer.cs (2)
44ThrowHelper.ThrowArgumentException(ExceptionResource.Argument_InvalidArgumentForComparison); 53ThrowHelper.ThrowArgumentException(ExceptionResource.Argument_InvalidArgumentForComparison);
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\HashSet.cs (1)
1200ThrowHelper.ThrowArgumentException(ExceptionResource.Arg_ArrayPlusOffTooSmall);
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\List.cs (7)
307ThrowHelper.ThrowArgumentException(ExceptionResource.Argument_InvalidOffLen); 391ThrowHelper.ThrowArgumentException(ExceptionResource.Arg_RankMultiDimNotSupported); 413ThrowHelper.ThrowArgumentException(ExceptionResource.Argument_InvalidOffLen); 687ThrowHelper.ThrowArgumentException(ExceptionResource.Argument_InvalidOffLen); 1033ThrowHelper.ThrowArgumentException(ExceptionResource.Argument_InvalidOffLen); 1073ThrowHelper.ThrowArgumentException(ExceptionResource.Argument_InvalidOffLen); 1113ThrowHelper.ThrowArgumentException(ExceptionResource.Argument_InvalidOffLen);
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\Queue.cs (2)
106ThrowHelper.ThrowArgumentException(ExceptionResource.Argument_InvalidOffLen); 143ThrowHelper.ThrowArgumentException(ExceptionResource.Argument_InvalidOffLen);
src\libraries\System.Private.CoreLib\src\System\Collections\ObjectModel\Collection.cs (3)
179ThrowHelper.ThrowArgumentException(ExceptionResource.Arg_RankMultiDimNotSupported); 184ThrowHelper.ThrowArgumentException(ExceptionResource.Arg_NonZeroLowerBound); 194ThrowHelper.ThrowArgumentException(ExceptionResource.Arg_ArrayPlusOffTooSmall);
src\libraries\System.Private.CoreLib\src\System\Collections\ObjectModel\ReadOnlyCollection.cs (3)
110ThrowHelper.ThrowArgumentException(ExceptionResource.Arg_RankMultiDimNotSupported); 115ThrowHelper.ThrowArgumentException(ExceptionResource.Arg_NonZeroLowerBound); 125ThrowHelper.ThrowArgumentException(ExceptionResource.Arg_ArrayPlusOffTooSmall);
src\libraries\System.Private.CoreLib\src\System\Globalization\IdnMapping.cs (2)
119ThrowHelper.ThrowArgumentException(ExceptionResource.InvalidOperation_SpanOverlappedOperation); 190ThrowHelper.ThrowArgumentException(ExceptionResource.InvalidOperation_SpanOverlappedOperation);
src\libraries\System.Private.CoreLib\src\System\Globalization\Normalization.cs (1)
49ThrowHelper.ThrowArgumentException(ExceptionResource.InvalidOperation_SpanOverlappedOperation);
src\libraries\System.Private.CoreLib\src\System\IO\Stream.cs (2)
285ThrowHelper.ThrowArgumentException(ExceptionResource.InvalidOperation_WrongAsyncResultOrEndCalledMultiple); 602ThrowHelper.ThrowArgumentException(ExceptionResource.InvalidOperation_WrongAsyncResultOrEndCalledMultiple);
src\libraries\System.Private.CoreLib\src\System\MemoryExtensions.cs (6)
4420ThrowHelper.ThrowArgumentException(ExceptionResource.Argument_SpansMustHaveSameLength); 4455ThrowHelper.ThrowArgumentException(ExceptionResource.Argument_SpansMustHaveSameLength); 4651ThrowHelper.ThrowArgumentException(ExceptionResource.InvalidOperation_SpanOverlappedOperation); 4735ThrowHelper.ThrowArgumentException(ExceptionResource.InvalidOperation_SpanOverlappedOperation); 4836ThrowHelper.ThrowArgumentException(ExceptionResource.InvalidOperation_SpanOverlappedOperation); 4886ThrowHelper.ThrowArgumentException(ExceptionResource.InvalidOperation_SpanOverlappedOperation);
src\libraries\System.Private.CoreLib\src\System\Numerics\TotalOrderIeee754Comparer.cs (1)
197ThrowHelper.ThrowArgumentException(ExceptionResource.Argument_InvalidArgumentForComparison);
src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\ConditionalWeakTable.cs (1)
80ThrowHelper.ThrowArgumentException(ExceptionResource.Argument_AddingDuplicate);
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\NativeMemory.Unix.cs (2)
29ThrowHelper.ThrowArgumentException(ExceptionResource.Argument_AlignmentMustBePow2); 90ThrowHelper.ThrowArgumentException(ExceptionResource.Argument_AlignmentMustBePow2);
src\System\Runtime\CompilerServices\RuntimeHelpers.CoreCLR.cs (1)
509ThrowHelper.ThrowArgumentException(ExceptionResource.Argument_AlignmentMustBePow2);