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