50 references to ThrowArgumentException
System.Private.CoreLib (50)
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)
435
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Arg_ByteArrayTooSmallForValue, ExceptionArgument.value);
473
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Arg_ByteArrayTooSmallForValue, ExceptionArgument.value);
511
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Arg_ByteArrayTooSmallForValue, ExceptionArgument.value);
549
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Arg_ByteArrayTooSmallForValue, ExceptionArgument.value);
675
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Arg_ByteArrayTooSmallForValue, ExceptionArgument.value);
804
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)
4984
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Task_WaitMulti_NullTask, ExceptionArgument.tasks);
5343
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Task_WaitMulti_NullTask, ExceptionArgument.tasks);
6051
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Task_MultiTaskContinuation_NullTask, ExceptionArgument.tasks);
6258
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Task_MultiTaskContinuation_NullTask, ExceptionArgument.tasks);
6276
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Task_MultiTaskContinuation_NullTask, ExceptionArgument.tasks);
6368
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Task_MultiTaskContinuation_NullTask, ExceptionArgument.tasks);
6551
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Task_MultiTaskContinuation_EmptyTaskList, ExceptionArgument.tasks);
6561
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Task_MultiTaskContinuation_NullTask, ExceptionArgument.tasks);
6735
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Task_MultiTaskContinuation_EmptyTaskList, ExceptionArgument.tasks);
6744
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Task_MultiTaskContinuation_NullTask, ExceptionArgument.tasks);
6763
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Task_MultiTaskContinuation_NullTask, ExceptionArgument.tasks);
6771
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Task_MultiTaskContinuation_EmptyTaskList, ExceptionArgument.tasks);
6951
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Task_MultiTaskContinuation_NullTask, ExceptionArgument.tasks);
6978
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);