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);
1094
ThrowHelper.
ThrowArgumentException
(ExceptionResource.ArgumentException_OtherNotArrayOfCorrectLength, ExceptionArgument.other);
src\libraries\System.Private.CoreLib\src\System\BitConverter.cs (6)
464
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Arg_ByteArrayTooSmallForValue, ExceptionArgument.value);
502
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Arg_ByteArrayTooSmallForValue, ExceptionArgument.value);
540
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Arg_ByteArrayTooSmallForValue, ExceptionArgument.value);
578
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Arg_ByteArrayTooSmallForValue, ExceptionArgument.value);
704
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Arg_ByteArrayTooSmallForValue, ExceptionArgument.value);
858
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)
733
ThrowHelper.
ThrowArgumentException
(ExceptionResource.NotSupported_StringComparison, ExceptionArgument.comparisonType);
1159
ThrowHelper.
ThrowArgumentException
(ExceptionResource.NotSupported_StringComparison, ExceptionArgument.comparisonType);
src\libraries\System.Private.CoreLib\src\System\String.Manipulation.cs (1)
2268
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Argument_InvalidFlag, ExceptionArgument.options);
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Task.cs (15)
5047
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Task_WaitMulti_NullTask, ExceptionArgument.tasks);
5407
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Task_WaitMulti_NullTask, ExceptionArgument.tasks);
6104
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Task_MultiTaskContinuation_NullTask, ExceptionArgument.tasks);
6134
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Task_MultiTaskContinuation_NullTask, ExceptionArgument.tasks);
6341
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Task_MultiTaskContinuation_NullTask, ExceptionArgument.tasks);
6359
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Task_MultiTaskContinuation_NullTask, ExceptionArgument.tasks);
6451
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Task_MultiTaskContinuation_NullTask, ExceptionArgument.tasks);
6634
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Task_MultiTaskContinuation_EmptyTaskList, ExceptionArgument.tasks);
6644
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Task_MultiTaskContinuation_NullTask, ExceptionArgument.tasks);
6818
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Task_MultiTaskContinuation_EmptyTaskList, ExceptionArgument.tasks);
6827
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Task_MultiTaskContinuation_NullTask, ExceptionArgument.tasks);
6846
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Task_MultiTaskContinuation_NullTask, ExceptionArgument.tasks);
6854
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Task_MultiTaskContinuation_EmptyTaskList, ExceptionArgument.tasks);
7034
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Task_MultiTaskContinuation_NullTask, ExceptionArgument.tasks);
7061
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);
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\TaskFactory_T.cs (4)
1260
if (promise == null) ThrowHelper.
ThrowArgumentException
(ExceptionResource.InvalidOperation_WrongAsyncResultOrEndCalledMultiple, ExceptionArgument.asyncResult);
1267
if (endMethod == null) ThrowHelper.
ThrowArgumentException
(ExceptionResource.InvalidOperation_WrongAsyncResultOrEndCalledMultiple, ExceptionArgument.asyncResult);
1979
if (tasks.Length == 0) ThrowHelper.
ThrowArgumentException
(ExceptionResource.Task_MultiTaskContinuation_EmptyTaskList, ExceptionArgument.tasks);
2030
if (tasks.Length == 0) ThrowHelper.
ThrowArgumentException
(ExceptionResource.Task_MultiTaskContinuation_EmptyTaskList, ExceptionArgument.tasks);