51 references to ThrowArgumentException
System.Private.CoreLib (51)
src\libraries\System.Private.CoreLib\src\System\Array.cs (13)
81
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Arg_MustBeType, ExceptionArgument.elementType);
96
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Arg_MustBeType, ExceptionArgument.elementType);
113
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Arg_MustBeType, ExceptionArgument.elementType);
130
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Arg_MustBeType, ExceptionArgument.elementType);
158
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Arg_MustBeType, ExceptionArgument.elementType);
213
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Arg_MustBeType, ExceptionArgument.arrayType);
216
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Argument_HasToBeArrayClass, ExceptionArgument.arrayType);
219
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Arg_RankMultiDimNotSupported, ExceptionArgument.arrayType);
250
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Arg_MustBeType, ExceptionArgument.arrayType);
253
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Argument_HasToBeArrayClass, ExceptionArgument.arrayType);
306
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Arg_MustBeType, ExceptionArgument.arrayType);
309
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Argument_HasToBeArrayClass, ExceptionArgument.arrayType);
1089
ThrowHelper.
ThrowArgumentException
(ExceptionResource.ArgumentException_OtherNotArrayOfCorrectLength, ExceptionArgument.other);
src\libraries\System.Private.CoreLib\src\System\BitConverter.cs (6)
436
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Arg_ByteArrayTooSmallForValue, ExceptionArgument.value);
474
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Arg_ByteArrayTooSmallForValue, ExceptionArgument.value);
512
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Arg_ByteArrayTooSmallForValue, ExceptionArgument.value);
550
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Arg_ByteArrayTooSmallForValue, ExceptionArgument.value);
676
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Arg_ByteArrayTooSmallForValue, ExceptionArgument.value);
805
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)
821
ThrowHelper.
ThrowArgumentException
(ExceptionResource.NotSupported_StringComparison, ExceptionArgument.comparisonType);
1247
ThrowHelper.
ThrowArgumentException
(ExceptionResource.NotSupported_StringComparison, ExceptionArgument.comparisonType);
src\libraries\System.Private.CoreLib\src\System\String.Manipulation.cs (1)
2272
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 (15)
4988
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Task_WaitMulti_NullTask, ExceptionArgument.tasks);
5347
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Task_WaitMulti_NullTask, ExceptionArgument.tasks);
6042
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Task_MultiTaskContinuation_NullTask, ExceptionArgument.tasks);
6072
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Task_MultiTaskContinuation_NullTask, ExceptionArgument.tasks);
6279
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Task_MultiTaskContinuation_NullTask, ExceptionArgument.tasks);
6297
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Task_MultiTaskContinuation_NullTask, ExceptionArgument.tasks);
6389
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Task_MultiTaskContinuation_NullTask, ExceptionArgument.tasks);
6572
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Task_MultiTaskContinuation_EmptyTaskList, ExceptionArgument.tasks);
6582
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Task_MultiTaskContinuation_NullTask, ExceptionArgument.tasks);
6756
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Task_MultiTaskContinuation_EmptyTaskList, ExceptionArgument.tasks);
6765
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Task_MultiTaskContinuation_NullTask, ExceptionArgument.tasks);
6784
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Task_MultiTaskContinuation_NullTask, ExceptionArgument.tasks);
6792
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Task_MultiTaskContinuation_EmptyTaskList, ExceptionArgument.tasks);
6972
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Task_MultiTaskContinuation_NullTask, ExceptionArgument.tasks);
6999
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);