48 references to ThrowArgumentException
System.Private.CoreLib (48)
src\libraries\System.Private.CoreLib\src\System\Array.cs (13)
82
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Arg_MustBeType, ExceptionArgument.elementType);
97
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Arg_MustBeType, ExceptionArgument.elementType);
114
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Arg_MustBeType, ExceptionArgument.elementType);
131
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Arg_MustBeType, ExceptionArgument.elementType);
159
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Arg_MustBeType, ExceptionArgument.elementType);
214
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Arg_MustBeType, ExceptionArgument.arrayType);
217
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Argument_HasToBeArrayClass, ExceptionArgument.arrayType);
220
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Arg_RankMultiDimNotSupported, ExceptionArgument.arrayType);
251
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Arg_MustBeType, ExceptionArgument.arrayType);
254
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Argument_HasToBeArrayClass, ExceptionArgument.arrayType);
307
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Arg_MustBeType, ExceptionArgument.arrayType);
310
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Argument_HasToBeArrayClass, ExceptionArgument.arrayType);
704
ThrowHelper.
ThrowArgumentException
(ExceptionResource.ArgumentException_OtherNotArrayOfCorrectLength, ExceptionArgument.other);
src\libraries\System.Private.CoreLib\src\System\BitConverter.cs (6)
427
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Arg_ByteArrayTooSmallForValue, ExceptionArgument.value);
465
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Arg_ByteArrayTooSmallForValue, ExceptionArgument.value);
503
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Arg_ByteArrayTooSmallForValue, ExceptionArgument.value);
541
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Arg_ByteArrayTooSmallForValue, ExceptionArgument.value);
667
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Arg_ByteArrayTooSmallForValue, ExceptionArgument.value);
796
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Arg_ByteArrayTooSmallForValue, ExceptionArgument.value);
src\libraries\System.Private.CoreLib\src\System\Globalization\CompareInfo.cs (4)
995
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Argument_InvalidFlag, ExceptionArgument.options);
1106
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Argument_InvalidFlag, ExceptionArgument.options);
1476
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Argument_InvalidFlag, ExceptionArgument.options);
1509
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Argument_InvalidFlag, ExceptionArgument.options);
src\libraries\System.Private.CoreLib\src\System\String.Comparison.cs (2)
801
ThrowHelper.
ThrowArgumentException
(ExceptionResource.NotSupported_StringComparison, ExceptionArgument.comparisonType);
1035
ThrowHelper.
ThrowArgumentException
(ExceptionResource.NotSupported_StringComparison, ExceptionArgument.comparisonType);
src\libraries\System.Private.CoreLib\src\System\String.Manipulation.cs (1)
2212
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)
4939
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Task_WaitMulti_NullTask, ExceptionArgument.tasks);
5295
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Task_WaitMulti_NullTask, ExceptionArgument.tasks);
6000
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Task_MultiTaskContinuation_NullTask, ExceptionArgument.tasks);
6207
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Task_MultiTaskContinuation_NullTask, ExceptionArgument.tasks);
6225
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Task_MultiTaskContinuation_NullTask, ExceptionArgument.tasks);
6315
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Task_MultiTaskContinuation_NullTask, ExceptionArgument.tasks);
6498
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Task_MultiTaskContinuation_EmptyTaskList, ExceptionArgument.tasks);
6508
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Task_MultiTaskContinuation_NullTask, ExceptionArgument.tasks);
6681
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Task_MultiTaskContinuation_EmptyTaskList, ExceptionArgument.tasks);
6690
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Task_MultiTaskContinuation_NullTask, ExceptionArgument.tasks);
6709
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Task_MultiTaskContinuation_NullTask, ExceptionArgument.tasks);
6717
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Task_MultiTaskContinuation_EmptyTaskList, ExceptionArgument.tasks);
6885
ThrowHelper.
ThrowArgumentException
(ExceptionResource.Task_MultiTaskContinuation_NullTask, ExceptionArgument.tasks);
6912
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);