50 references to ThrowArgumentException
System.Private.CoreLib (50)
src\libraries\System.Private.CoreLib\src\System\Array.cs (13)
80
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Arg_MustBeType, ExceptionArgument.elementType);
95
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Arg_MustBeType, ExceptionArgument.elementType);
112
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Arg_MustBeType, ExceptionArgument.elementType);
129
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Arg_MustBeType, ExceptionArgument.elementType);
157
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Arg_MustBeType, ExceptionArgument.elementType);
212
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Arg_MustBeType, ExceptionArgument.arrayType);
215
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Argument_HasToBeArrayClass, ExceptionArgument.arrayType);
218
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Arg_RankMultiDimNotSupported, ExceptionArgument.arrayType);
249
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Arg_MustBeType, ExceptionArgument.arrayType);
252
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Argument_HasToBeArrayClass, ExceptionArgument.arrayType);
305
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Arg_MustBeType, ExceptionArgument.arrayType);
308
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Argument_HasToBeArrayClass, ExceptionArgument.arrayType);
702
ThrowHelper.
ThrowArgumentException
(ExceptionResource.ArgumentException_OtherNotArrayOfCorrectLength, ExceptionArgument.other);
src\libraries\System.Private.CoreLib\src\System\BitConverter.cs (6)
422
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Arg_ByteArrayTooSmallForValue, ExceptionArgument.value);
460
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Arg_ByteArrayTooSmallForValue, ExceptionArgument.value);
498
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Arg_ByteArrayTooSmallForValue, ExceptionArgument.value);
536
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Arg_ByteArrayTooSmallForValue, ExceptionArgument.value);
662
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Arg_ByteArrayTooSmallForValue, ExceptionArgument.value);
791
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Arg_ByteArrayTooSmallForValue, ExceptionArgument.value);
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\Queue.cs (2)
127
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Arg_RankMultiDimNotSupported, ExceptionArgument.array);
132
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Arg_NonZeroLowerBound, ExceptionArgument.array);
src\libraries\System.Private.CoreLib\src\System\Globalization\CompareInfo.cs (4)
985
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Argument_InvalidFlag, ExceptionArgument.options);
1096
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Argument_InvalidFlag, ExceptionArgument.options);
1462
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Argument_InvalidFlag, ExceptionArgument.options);
1495
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Argument_InvalidFlag, ExceptionArgument.options);
src\libraries\System.Private.CoreLib\src\System\String.Comparison.cs (2)
802
ThrowHelper.
ThrowArgumentException
(ExceptionResource.NotSupported_StringComparison, ExceptionArgument.comparisonType);
1190
ThrowHelper.
ThrowArgumentException
(ExceptionResource.NotSupported_StringComparison, ExceptionArgument.comparisonType);
src\libraries\System.Private.CoreLib\src\System\String.Manipulation.cs (1)
2211
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Argument_InvalidFlag, ExceptionArgument.options);
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\FutureFactory.cs (4)
1257
if (promise == null) ThrowHelper.
ThrowArgumentException
(ExceptionResource.InvalidOperation_WrongAsyncResultOrEndCalledMultiple, ExceptionArgument.asyncResult);
1264
if (endMethod == null) ThrowHelper.
ThrowArgumentException
(ExceptionResource.InvalidOperation_WrongAsyncResultOrEndCalledMultiple, ExceptionArgument.asyncResult);
1976
if (tasks.Length == 0) ThrowHelper.
ThrowArgumentException
(ExceptionResource.Task_MultiTaskContinuation_EmptyTaskList, ExceptionArgument.tasks);
2027
if (tasks.Length == 0) ThrowHelper.
ThrowArgumentException
(ExceptionResource.Task_MultiTaskContinuation_EmptyTaskList, ExceptionArgument.tasks);
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Task.cs (14)
4988
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Task_WaitMulti_NullTask, ExceptionArgument.tasks);
5347
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Task_WaitMulti_NullTask, ExceptionArgument.tasks);
6055
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Task_MultiTaskContinuation_NullTask, ExceptionArgument.tasks);
6262
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Task_MultiTaskContinuation_NullTask, ExceptionArgument.tasks);
6280
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Task_MultiTaskContinuation_NullTask, ExceptionArgument.tasks);
6372
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Task_MultiTaskContinuation_NullTask, ExceptionArgument.tasks);
6555
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Task_MultiTaskContinuation_EmptyTaskList, ExceptionArgument.tasks);
6565
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Task_MultiTaskContinuation_NullTask, ExceptionArgument.tasks);
6739
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Task_MultiTaskContinuation_EmptyTaskList, ExceptionArgument.tasks);
6748
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Task_MultiTaskContinuation_NullTask, ExceptionArgument.tasks);
6767
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Task_MultiTaskContinuation_NullTask, ExceptionArgument.tasks);
6775
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Task_MultiTaskContinuation_EmptyTaskList, ExceptionArgument.tasks);
6955
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Task_MultiTaskContinuation_NullTask, ExceptionArgument.tasks);
6982
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Task_MultiTaskContinuation_NullTask, ExceptionArgument.tasks);
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\TaskCompletionSource.cs (2)
167
ThrowHelper.
ThrowArgumentException
(ExceptionResource.TaskCompletionSourceT_TrySetException_NullException, ExceptionArgument.exceptions);
175
ThrowHelper.
ThrowArgumentException
(ExceptionResource.TaskCompletionSourceT_TrySetException_NoExceptions, ExceptionArgument.exceptions);
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\TaskCompletionSource_T.cs (2)
167
ThrowHelper.
ThrowArgumentException
(ExceptionResource.TaskCompletionSourceT_TrySetException_NullException, ExceptionArgument.exceptions);
175
ThrowHelper.
ThrowArgumentException
(ExceptionResource.TaskCompletionSourceT_TrySetException_NoExceptions, ExceptionArgument.exceptions);