293 references to ThrowHelper
mscorlib (293)
microsoft\win32\registrykey.cs (24)
442ThrowHelper.ThrowInvalidOperationException(ExceptionResource.InvalidOperation_RegRemoveSubKey); 462ThrowHelper.ThrowArgumentException(ExceptionResource.Arg_RegSubKeyAbsent); 470ThrowHelper.ThrowArgumentException(ExceptionResource.Arg_RegSubKeyAbsent); 495ThrowHelper.ThrowArgumentException(ExceptionResource.Arg_RegKeyDelHive); 530ThrowHelper.ThrowArgumentException(ExceptionResource.Arg_RegSubKeyAbsent); 566ThrowHelper.ThrowArgumentException(ExceptionResource.Arg_RegSubKeyAbsent); 595ThrowHelper.ThrowArgumentException(ExceptionResource.Arg_RegSubKeyValueAbsent); 753ThrowHelper.ThrowSecurityException(ExceptionResource.Security_RegistryPermission); 812ThrowHelper.ThrowSecurityException(ExceptionResource.Security_RegistryPermission); 1460ThrowHelper.ThrowArgumentNullException(ExceptionArgument.value); 1511ThrowHelper.ThrowArgumentException(ExceptionResource.Arg_RegSetStrArrNull); 1585ThrowHelper.ThrowArgumentException(ExceptionResource.Arg_RegSetMismatchedKind); 1588ThrowHelper.ThrowArgumentException(ExceptionResource.Arg_RegSetMismatchedKind); 1591ThrowHelper.ThrowArgumentException(ExceptionResource.Arg_RegSetMismatchedKind); 1594ThrowHelper.ThrowArgumentException(ExceptionResource.Arg_RegSetMismatchedKind); 2094ThrowHelper.ThrowObjectDisposedException(keyName, ExceptionResource.ObjectDisposed_RegKeyClosed); 2102ThrowHelper.ThrowUnauthorizedAccessException(ExceptionResource.UnauthorizedAccess_RegistryNoWrite); 2154ThrowHelper.ThrowArgumentNullException(ExceptionArgument.name); 2161ThrowHelper.ThrowArgumentException(ExceptionResource.Arg_RegKeyStrLenBug); 2168ThrowHelper.ThrowArgumentException(ExceptionResource.Arg_RegKeyStrLenBug); 2174ThrowHelper.ThrowArgumentException(ExceptionResource.Argument_InvalidRegistryKeyPermissionCheck, ExceptionArgument.mode); 2180ThrowHelper.ThrowArgumentException(ExceptionResource.Argument_InvalidRegistryOptionsCheck, ExceptionArgument.options); 2186ThrowHelper.ThrowArgumentException(ExceptionResource.Argument_InvalidRegistryViewCheck, ExceptionArgument.view); 2196ThrowHelper.ThrowSecurityException(ExceptionResource.Security_RegistryPermission);
system\array.cs (2)
2786ThrowHelper.ThrowArgumentOutOfRangeException(); 2798ThrowHelper.ThrowArgumentOutOfRangeException();
system\bitconverter.cs (27)
157ThrowHelper.ThrowArgumentNullException(ExceptionArgument.value); 161ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.startIndex, ExceptionResource.ArgumentOutOfRange_Index); 165ThrowHelper.ThrowArgumentException(ExceptionResource.Arg_ArrayPlusOffTooSmall); 176ThrowHelper.ThrowArgumentNullException(ExceptionArgument.value); 180ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.startIndex, ExceptionResource.ArgumentOutOfRange_Index); 184ThrowHelper.ThrowArgumentException(ExceptionResource.Arg_ArrayPlusOffTooSmall); 208ThrowHelper.ThrowArgumentNullException(ExceptionArgument.value); 212ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.startIndex, ExceptionResource.ArgumentOutOfRange_Index); 216ThrowHelper.ThrowArgumentException(ExceptionResource.Arg_ArrayPlusOffTooSmall); 239ThrowHelper.ThrowArgumentNullException(ExceptionArgument.value); 243ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.startIndex, ExceptionResource.ArgumentOutOfRange_Index); 247ThrowHelper.ThrowArgumentException(ExceptionResource.Arg_ArrayPlusOffTooSmall); 277ThrowHelper.ThrowArgumentNullException(ExceptionArgument.value); 279ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.startIndex, ExceptionResource.ArgumentOutOfRange_Index); 281ThrowHelper.ThrowArgumentException(ExceptionResource.Arg_ArrayPlusOffTooSmall); 293ThrowHelper.ThrowArgumentNullException(ExceptionArgument.value); 295ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.startIndex, ExceptionResource.ArgumentOutOfRange_Index); 297ThrowHelper.ThrowArgumentException(ExceptionResource.Arg_ArrayPlusOffTooSmall); 309ThrowHelper.ThrowArgumentNullException(ExceptionArgument.value); 311ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.startIndex, ExceptionResource.ArgumentOutOfRange_Index); 313ThrowHelper.ThrowArgumentException(ExceptionResource.Arg_ArrayPlusOffTooSmall); 324ThrowHelper.ThrowArgumentNullException(ExceptionArgument.value); 326ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.startIndex, ExceptionResource.ArgumentOutOfRange_Index); 328ThrowHelper.ThrowArgumentException(ExceptionResource.Arg_ArrayPlusOffTooSmall); 340ThrowHelper.ThrowArgumentNullException(ExceptionArgument.value); 342ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.startIndex, ExceptionResource.ArgumentOutOfRange_Index); 344ThrowHelper.ThrowArgumentException(ExceptionResource.Arg_ArrayPlusOffTooSmall);
system\buffer.cs (2)
507ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.sourceBytesToCopy); 522ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.sourceBytesToCopy);
system\collections\generic\comparer.cs (1)
80ThrowHelper.ThrowArgumentException(ExceptionResource.Argument_InvalidArgumentForComparison);
system\collections\generic\debugview.cs (4)
34ThrowHelper.ThrowArgumentNullException(ExceptionArgument.collection); 54ThrowHelper.ThrowArgumentNullException(ExceptionArgument.collection); 74ThrowHelper.ThrowArgumentNullException(ExceptionArgument.collection); 94ThrowHelper.ThrowArgumentNullException(ExceptionArgument.dictionary);
system\collections\generic\dictionary.cs (69)
92if (capacity < 0) ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.capacity); 110ThrowHelper.ThrowArgumentNullException(ExceptionArgument.dictionary); 183ThrowHelper.ThrowKeyNotFoundException(); 248ThrowHelper.ThrowArgumentNullException(ExceptionArgument.array); 252ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.index, ExceptionResource.ArgumentOutOfRange_NeedNonNegNum); 256ThrowHelper.ThrowArgumentException(ExceptionResource.Arg_ArrayPlusOffTooSmall); 279ThrowHelper.ThrowArgumentNullException(ExceptionArgument.info); 299ThrowHelper.ThrowArgumentNullException(ExceptionArgument.key); 322ThrowHelper.ThrowArgumentNullException(ExceptionArgument.key); 336ThrowHelper.ThrowArgumentException(ExceptionResource.Argument_AddingDuplicate); 421ThrowHelper.ThrowSerializationException(ExceptionResource.Serialization_MissingKeys); 426ThrowHelper.ThrowSerializationException(ExceptionResource.Serialization_NullKey); 469ThrowHelper.ThrowArgumentNullException(ExceptionArgument.key); 530ThrowHelper.ThrowArgumentNullException(ExceptionArgument.array); 534ThrowHelper.ThrowArgumentException(ExceptionResource.Arg_RankMultiDimNotSupported); 538ThrowHelper.ThrowArgumentException(ExceptionResource.Arg_NonZeroLowerBound); 542ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.index, ExceptionResource.ArgumentOutOfRange_NeedNonNegNum); 546ThrowHelper.ThrowArgumentException(ExceptionResource.Arg_ArrayPlusOffTooSmall); 565ThrowHelper.ThrowArgumentException(ExceptionResource.Argument_InvalidArrayType); 578ThrowHelper.ThrowArgumentException(ExceptionResource.Argument_InvalidArrayType); 629ThrowHelper.ThrowArgumentNullException(ExceptionArgument.key); 631ThrowHelper.IfNullAndNullsAreIllegalThenThrow<TValue>(value, ExceptionArgument.value); 639ThrowHelper.ThrowWrongValueTypeArgumentException(value, typeof(TValue)); 643ThrowHelper.ThrowWrongKeyTypeArgumentException(key, typeof(TKey)); 650ThrowHelper.ThrowArgumentNullException(ExceptionArgument.key); 658ThrowHelper.ThrowArgumentNullException(ExceptionArgument.key); 660ThrowHelper.IfNullAndNullsAreIllegalThenThrow<TValue>(value, ExceptionArgument.value); 669ThrowHelper.ThrowWrongValueTypeArgumentException(value, typeof(TValue)); 673ThrowHelper.ThrowWrongKeyTypeArgumentException(key, typeof(TKey)); 718ThrowHelper.ThrowInvalidOperationException(ExceptionResource.InvalidOperation_EnumFailedVersion); 747ThrowHelper.ThrowInvalidOperationException(ExceptionResource.InvalidOperation_EnumOpCantHappen); 760ThrowHelper.ThrowInvalidOperationException(ExceptionResource.InvalidOperation_EnumFailedVersion); 770ThrowHelper.ThrowInvalidOperationException(ExceptionResource.InvalidOperation_EnumOpCantHappen); 780ThrowHelper.ThrowInvalidOperationException(ExceptionResource.InvalidOperation_EnumOpCantHappen); 790ThrowHelper.ThrowInvalidOperationException(ExceptionResource.InvalidOperation_EnumOpCantHappen); 807ThrowHelper.ThrowArgumentNullException(ExceptionArgument.dictionary); 818ThrowHelper.ThrowArgumentNullException(ExceptionArgument.array); 822ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.index, ExceptionResource.ArgumentOutOfRange_NeedNonNegNum); 826ThrowHelper.ThrowArgumentException(ExceptionResource.Arg_ArrayPlusOffTooSmall); 845ThrowHelper.ThrowNotSupportedException(ExceptionResource.NotSupported_KeyCollectionSet); 849ThrowHelper.ThrowNotSupportedException(ExceptionResource.NotSupported_KeyCollectionSet); 857ThrowHelper.ThrowNotSupportedException(ExceptionResource.NotSupported_KeyCollectionSet); 871ThrowHelper.ThrowArgumentNullException(ExceptionArgument.array); 875ThrowHelper.ThrowArgumentException(ExceptionResource.Arg_RankMultiDimNotSupported); 879ThrowHelper.ThrowArgumentException(ExceptionResource.Arg_NonZeroLowerBound); 883ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.index, ExceptionResource.ArgumentOutOfRange_NeedNonNegNum); 887ThrowHelper.ThrowArgumentException(ExceptionResource.Arg_ArrayPlusOffTooSmall); 897ThrowHelper.ThrowArgumentException(ExceptionResource.Argument_InvalidArrayType); 908ThrowHelper.ThrowArgumentException(ExceptionResource.Argument_InvalidArrayType); 941ThrowHelper.ThrowInvalidOperationException(ExceptionResource.InvalidOperation_EnumFailedVersion); 967ThrowHelper.ThrowInvalidOperationException(ExceptionResource.InvalidOperation_EnumOpCantHappen); 976ThrowHelper.ThrowInvalidOperationException(ExceptionResource.InvalidOperation_EnumFailedVersion); 994ThrowHelper.ThrowArgumentNullException(ExceptionArgument.dictionary); 1005ThrowHelper.ThrowArgumentNullException(ExceptionArgument.array); 1009ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.index, ExceptionResource.ArgumentOutOfRange_NeedNonNegNum); 1013ThrowHelper.ThrowArgumentException(ExceptionResource.Arg_ArrayPlusOffTooSmall); 1032ThrowHelper.ThrowNotSupportedException(ExceptionResource.NotSupported_ValueCollectionSet); 1036ThrowHelper.ThrowNotSupportedException(ExceptionResource.NotSupported_ValueCollectionSet); 1041ThrowHelper.ThrowNotSupportedException(ExceptionResource.NotSupported_ValueCollectionSet); 1058ThrowHelper.ThrowArgumentNullException(ExceptionArgument.array); 1062ThrowHelper.ThrowArgumentException(ExceptionResource.Arg_RankMultiDimNotSupported); 1066ThrowHelper.ThrowArgumentException(ExceptionResource.Arg_NonZeroLowerBound); 1070ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.index, ExceptionResource.ArgumentOutOfRange_NeedNonNegNum); 1074ThrowHelper.ThrowArgumentException(ExceptionResource.Arg_ArrayPlusOffTooSmall); 1083ThrowHelper.ThrowArgumentException(ExceptionResource.Argument_InvalidArrayType); 1094ThrowHelper.ThrowArgumentException(ExceptionResource.Argument_InvalidArrayType); 1127ThrowHelper.ThrowInvalidOperationException(ExceptionResource.InvalidOperation_EnumFailedVersion); 1152ThrowHelper.ThrowInvalidOperationException(ExceptionResource.InvalidOperation_EnumOpCantHappen); 1161ThrowHelper.ThrowInvalidOperationException(ExceptionResource.InvalidOperation_EnumFailedVersion);
system\collections\generic\equalitycomparer.cs (3)
110ThrowHelper.ThrowArgumentException(ExceptionResource.Argument_InvalidArgumentForComparison); 118ThrowHelper.ThrowArgumentException(ExceptionResource.Argument_InvalidArgumentForComparison); 508ThrowHelper.ThrowArgumentException(ExceptionResource.Argument_InvalidArgumentForComparison);
system\collections\generic\list.cs (60)
61if (capacity < 0) ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.capacity, ExceptionResource.ArgumentOutOfRange_NeedNonNegNum); 76ThrowHelper.ThrowArgumentNullException(ExceptionArgument.collection); 117ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.value, ExceptionResource.ArgumentOutOfRange_SmallCapacity); 178ThrowHelper.ThrowArgumentOutOfRangeException(); 186ThrowHelper.ThrowArgumentOutOfRangeException(); 205ThrowHelper.IfNullAndNullsAreIllegalThenThrow<T>(value, ExceptionArgument.value); 211ThrowHelper.ThrowWrongValueTypeArgumentException(value, typeof(T)); 228ThrowHelper.IfNullAndNullsAreIllegalThenThrow<T>(item, ExceptionArgument.item); 234ThrowHelper.ThrowWrongValueTypeArgumentException(item, typeof(T)); 278ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.index, ExceptionResource.ArgumentOutOfRange_NeedNonNegNum); 280ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.count, ExceptionResource.ArgumentOutOfRange_NeedNonNegNum); 282ThrowHelper.ThrowArgumentException(ExceptionResource.Argument_InvalidOffLen); 342ThrowHelper.ThrowArgumentNullException(ExceptionArgument.converter); 369ThrowHelper.ThrowArgumentException(ExceptionResource.Arg_RankMultiDimNotSupported); 378ThrowHelper.ThrowArgumentException(ExceptionResource.Argument_InvalidArrayType); 388ThrowHelper.ThrowArgumentException(ExceptionResource.Argument_InvalidOffLen); 422ThrowHelper.ThrowArgumentNullException(ExceptionArgument.match); 436ThrowHelper.ThrowArgumentNullException(ExceptionArgument.match); 463ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.startIndex, ExceptionResource.ArgumentOutOfRange_Index); 467ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.count, ExceptionResource.ArgumentOutOfRange_Count); 471ThrowHelper.ThrowArgumentNullException(ExceptionArgument.match); 486ThrowHelper.ThrowArgumentNullException(ExceptionArgument.match); 512ThrowHelper.ThrowArgumentNullException(ExceptionArgument.match); 521ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.startIndex, ExceptionResource.ArgumentOutOfRange_Index); 527ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.startIndex, ExceptionResource.ArgumentOutOfRange_Index); 533ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.count, ExceptionResource.ArgumentOutOfRange_Count); 547ThrowHelper.ThrowArgumentNullException(ExceptionArgument.match); 561ThrowHelper.ThrowInvalidOperationException(ExceptionResource.InvalidOperation_EnumFailedVersion); 584ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.index, ExceptionResource.ArgumentOutOfRange_NeedNonNegNum); 588ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.count, ExceptionResource.ArgumentOutOfRange_NeedNonNegNum); 592ThrowHelper.ThrowArgumentException(ExceptionResource.Argument_InvalidOffLen); 637ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.index, ExceptionResource.ArgumentOutOfRange_Index); 655ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.index, ExceptionResource.ArgumentOutOfRange_Index); 657if (count <0 || index > _size - count) ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.count, ExceptionResource.ArgumentOutOfRange_Count); 672ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.index, ExceptionResource.ArgumentOutOfRange_ListInsert); 686ThrowHelper.IfNullAndNullsAreIllegalThenThrow<T>(item, ExceptionArgument.item); 692ThrowHelper.ThrowWrongValueTypeArgumentException(item, typeof(T)); 703ThrowHelper.ThrowArgumentNullException(ExceptionArgument.collection); 707ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.index, ExceptionResource.ArgumentOutOfRange_Index); 777ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.index, ExceptionResource.ArgumentOutOfRange_Index); 795ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.index, ExceptionResource.ArgumentOutOfRange_NeedNonNegNum); 799ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.count, ExceptionResource.ArgumentOutOfRange_NeedNonNegNum); 810ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.index, ExceptionResource.ArgumentOutOfRange_BiggerThanCollection); 814ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.count, ExceptionResource.ArgumentOutOfRange_BiggerThanCollection); 844ThrowHelper.ThrowArgumentNullException(ExceptionArgument.match); 879ThrowHelper.ThrowArgumentOutOfRangeException(); 894ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.index, ExceptionResource.ArgumentOutOfRange_NeedNonNegNum); 898ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.count, ExceptionResource.ArgumentOutOfRange_NeedNonNegNum); 902ThrowHelper.ThrowArgumentException(ExceptionResource.Argument_InvalidOffLen); 931ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.index, ExceptionResource.ArgumentOutOfRange_NeedNonNegNum); 935ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.count, ExceptionResource.ArgumentOutOfRange_NeedNonNegNum); 939ThrowHelper.ThrowArgumentException(ExceptionResource.Argument_InvalidOffLen); 969ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.index, ExceptionResource.ArgumentOutOfRange_NeedNonNegNum); 973ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.count, ExceptionResource.ArgumentOutOfRange_NeedNonNegNum); 977ThrowHelper.ThrowArgumentException(ExceptionResource.Argument_InvalidOffLen); 986ThrowHelper.ThrowArgumentNullException(ExceptionArgument.match); 1025ThrowHelper.ThrowArgumentNullException(ExceptionArgument.match); 1173ThrowHelper.ThrowInvalidOperationException(ExceptionResource.InvalidOperation_EnumFailedVersion); 1190ThrowHelper.ThrowInvalidOperationException(ExceptionResource.InvalidOperation_EnumOpCantHappen); 1198ThrowHelper.ThrowInvalidOperationException(ExceptionResource.InvalidOperation_EnumFailedVersion);
system\collections\objectmodel\collection.cs (27)
33ThrowHelper.ThrowArgumentNullException(ExceptionArgument.list); 50ThrowHelper.ThrowNotSupportedException(ExceptionResource.NotSupported_ReadOnlyCollection); 54ThrowHelper.ThrowArgumentOutOfRangeException(); 63ThrowHelper.ThrowNotSupportedException(ExceptionResource.NotSupported_ReadOnlyCollection); 72ThrowHelper.ThrowNotSupportedException(ExceptionResource.NotSupported_ReadOnlyCollection); 96ThrowHelper.ThrowNotSupportedException(ExceptionResource.NotSupported_ReadOnlyCollection); 100ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.index, ExceptionResource.ArgumentOutOfRange_ListInsert); 108ThrowHelper.ThrowNotSupportedException(ExceptionResource.NotSupported_ReadOnlyCollection); 119ThrowHelper.ThrowNotSupportedException(ExceptionResource.NotSupported_ReadOnlyCollection); 123ThrowHelper.ThrowArgumentOutOfRangeException(); 176ThrowHelper.ThrowArgumentNullException(ExceptionArgument.array); 180ThrowHelper.ThrowArgumentException(ExceptionResource.Arg_RankMultiDimNotSupported); 184ThrowHelper.ThrowArgumentException(ExceptionResource.Arg_NonZeroLowerBound); 188ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.index, ExceptionResource.ArgumentOutOfRange_NeedNonNegNum); 192ThrowHelper.ThrowArgumentException(ExceptionResource.Arg_ArrayPlusOffTooSmall); 209ThrowHelper.ThrowArgumentException(ExceptionResource.Argument_InvalidArrayType); 218ThrowHelper.ThrowArgumentException(ExceptionResource.Argument_InvalidArrayType); 228ThrowHelper.ThrowArgumentException(ExceptionResource.Argument_InvalidArrayType); 236ThrowHelper.IfNullAndNullsAreIllegalThenThrow<T>(value, ExceptionArgument.value); 242ThrowHelper.ThrowWrongValueTypeArgumentException(value, typeof(T)); 271ThrowHelper.ThrowNotSupportedException(ExceptionResource.NotSupported_ReadOnlyCollection); 273ThrowHelper.IfNullAndNullsAreIllegalThenThrow<T>(value, ExceptionArgument.value); 279ThrowHelper.ThrowWrongValueTypeArgumentException(value, typeof(T)); 301ThrowHelper.ThrowNotSupportedException(ExceptionResource.NotSupported_ReadOnlyCollection); 303ThrowHelper.IfNullAndNullsAreIllegalThenThrow<T>(value, ExceptionArgument.value); 309ThrowHelper.ThrowWrongValueTypeArgumentException(value, typeof(T)); 316ThrowHelper.ThrowNotSupportedException(ExceptionResource.NotSupported_ReadOnlyCollection);
system\collections\objectmodel\keyedcollection.cs (7)
44ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.dictionaryCreationThreshold, ExceptionResource.ArgumentOutOfRange_InvalidThreshold); 60ThrowHelper.ThrowArgumentNullException(ExceptionArgument.key); 71ThrowHelper.ThrowKeyNotFoundException(); 78ThrowHelper.ThrowArgumentNullException(ExceptionArgument.key); 109ThrowHelper.ThrowArgumentNullException(ExceptionArgument.key); 138ThrowHelper.ThrowArgumentException(ExceptionResource.Argument_ItemNotExist); 211ThrowHelper.ThrowArgumentException(ExceptionResource.Argument_AddingDuplicate);
system\collections\objectmodel\readonlycollection.cs (21)
29ThrowHelper.ThrowArgumentNullException(ExceptionArgument.list); 71ThrowHelper.ThrowNotSupportedException(ExceptionResource.NotSupported_ReadOnlyCollection); 76ThrowHelper.ThrowNotSupportedException(ExceptionResource.NotSupported_ReadOnlyCollection); 80ThrowHelper.ThrowNotSupportedException(ExceptionResource.NotSupported_ReadOnlyCollection); 84ThrowHelper.ThrowNotSupportedException(ExceptionResource.NotSupported_ReadOnlyCollection); 88ThrowHelper.ThrowNotSupportedException(ExceptionResource.NotSupported_ReadOnlyCollection); 93ThrowHelper.ThrowNotSupportedException(ExceptionResource.NotSupported_ReadOnlyCollection); 121ThrowHelper.ThrowArgumentNullException(ExceptionArgument.array); 125ThrowHelper.ThrowArgumentException(ExceptionResource.Arg_RankMultiDimNotSupported); 129ThrowHelper.ThrowArgumentException(ExceptionResource.Arg_NonZeroLowerBound); 133ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.arrayIndex, ExceptionResource.ArgumentOutOfRange_NeedNonNegNum); 137ThrowHelper.ThrowArgumentException(ExceptionResource.Arg_ArrayPlusOffTooSmall); 154ThrowHelper.ThrowArgumentException(ExceptionResource.Argument_InvalidArrayType); 163ThrowHelper.ThrowArgumentException(ExceptionResource.Argument_InvalidArrayType); 173ThrowHelper.ThrowArgumentException(ExceptionResource.Argument_InvalidArrayType); 189ThrowHelper.ThrowNotSupportedException(ExceptionResource.NotSupported_ReadOnlyCollection); 194ThrowHelper.ThrowNotSupportedException(ExceptionResource.NotSupported_ReadOnlyCollection); 199ThrowHelper.ThrowNotSupportedException(ExceptionResource.NotSupported_ReadOnlyCollection); 223ThrowHelper.ThrowNotSupportedException(ExceptionResource.NotSupported_ReadOnlyCollection); 227ThrowHelper.ThrowNotSupportedException(ExceptionResource.NotSupported_ReadOnlyCollection); 231ThrowHelper.ThrowNotSupportedException(ExceptionResource.NotSupported_ReadOnlyCollection);
system\collections\objectmodel\readonlydictionary.cs (34)
98ThrowHelper.ThrowNotSupportedException(ExceptionResource.NotSupported_ReadOnlyCollection); 102ThrowHelper.ThrowNotSupportedException(ExceptionResource.NotSupported_ReadOnlyCollection); 111ThrowHelper.ThrowNotSupportedException(ExceptionResource.NotSupported_ReadOnlyCollection); 136ThrowHelper.ThrowNotSupportedException(ExceptionResource.NotSupported_ReadOnlyCollection); 140ThrowHelper.ThrowNotSupportedException(ExceptionResource.NotSupported_ReadOnlyCollection); 144ThrowHelper.ThrowNotSupportedException(ExceptionResource.NotSupported_ReadOnlyCollection); 170ThrowHelper.ThrowArgumentNullException(ExceptionArgument.key); 176ThrowHelper.ThrowNotSupportedException(ExceptionResource.NotSupported_ReadOnlyCollection); 180ThrowHelper.ThrowNotSupportedException(ExceptionResource.NotSupported_ReadOnlyCollection); 210ThrowHelper.ThrowNotSupportedException(ExceptionResource.NotSupported_ReadOnlyCollection); 227ThrowHelper.ThrowNotSupportedException(ExceptionResource.NotSupported_ReadOnlyCollection); 233ThrowHelper.ThrowArgumentNullException(ExceptionArgument.array); 237ThrowHelper.ThrowArgumentException(ExceptionResource.Arg_RankMultiDimNotSupported); 241ThrowHelper.ThrowArgumentException(ExceptionResource.Arg_NonZeroLowerBound); 245ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.index, ExceptionResource.ArgumentOutOfRange_NeedNonNegNum); 249ThrowHelper.ThrowArgumentException(ExceptionResource.Arg_ArrayPlusOffTooSmall); 266ThrowHelper.ThrowArgumentException(ExceptionResource.Argument_InvalidArrayType); 275ThrowHelper.ThrowArgumentException(ExceptionResource.Argument_InvalidArrayType); 364ThrowHelper.ThrowArgumentNullException(ExceptionArgument.collection); 373ThrowHelper.ThrowNotSupportedException(ExceptionResource.NotSupported_ReadOnlyCollection); 378ThrowHelper.ThrowNotSupportedException(ExceptionResource.NotSupported_ReadOnlyCollection); 401ThrowHelper.ThrowNotSupportedException(ExceptionResource.NotSupported_ReadOnlyCollection); 463ThrowHelper.ThrowArgumentNullException(ExceptionArgument.collection); 472ThrowHelper.ThrowNotSupportedException(ExceptionResource.NotSupported_ReadOnlyCollection); 477ThrowHelper.ThrowNotSupportedException(ExceptionResource.NotSupported_ReadOnlyCollection); 500ThrowHelper.ThrowNotSupportedException(ExceptionResource.NotSupported_ReadOnlyCollection); 561ThrowHelper.ThrowArgumentNullException(ExceptionArgument.array); 565ThrowHelper.ThrowArgumentException(ExceptionResource.Arg_RankMultiDimNotSupported); 569ThrowHelper.ThrowArgumentException(ExceptionResource.Arg_NonZeroLowerBound); 573ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.arrayIndex, ExceptionResource.ArgumentOutOfRange_NeedNonNegNum); 577ThrowHelper.ThrowArgumentException(ExceptionResource.Arg_ArrayPlusOffTooSmall); 601ThrowHelper.ThrowArgumentException(ExceptionResource.Argument_InvalidArrayType); 610ThrowHelper.ThrowArgumentException(ExceptionResource.Argument_InvalidArrayType); 619ThrowHelper.ThrowArgumentException(ExceptionResource.Argument_InvalidArrayType);
system\nullable.cs (1)
48ThrowHelper.ThrowInvalidOperationException(ExceptionResource.InvalidOperation_NoValue);
system\runtime\compilerservices\ConditionalWeakTable.cs (4)
110ThrowHelper.ThrowArgumentNullException(ExceptionArgument.key); 134ThrowHelper.ThrowArgumentNullException(ExceptionArgument.key); 146ThrowHelper.ThrowArgumentException(ExceptionResource.Argument_AddingDuplicate); 169ThrowHelper.ThrowArgumentNullException(ExceptionArgument.key);
system\runtime\interopservices\windowsruntime\icustompropertyprovider.cs (1)
582ThrowHelper.IfNullAndNullsAreIllegalThenThrow<T>(value, ExceptionArgument.value);
system\runtime\interopservices\windowsruntime\iteratortoenumeratoradapter.cs (5)
130ThrowHelper.ThrowInvalidOperationException(ExceptionResource.InvalidOperation_EnumNotStarted); 133ThrowHelper.ThrowInvalidOperationException(ExceptionResource.InvalidOperation_EnumEnded); 144ThrowHelper.ThrowInvalidOperationException(ExceptionResource.InvalidOperation_EnumNotStarted); 147ThrowHelper.ThrowInvalidOperationException(ExceptionResource.InvalidOperation_EnumEnded); 194ThrowHelper.ThrowInvalidOperationException(ExceptionResource.InvalidOperation_EnumFailedVersion);
system\throwhelper.cs (1)
126ThrowHelper.ThrowArgumentNullException(argName);