260 references to ExceptionResource
mscorlib (260)
microsoft\win32\registrykey.cs (22)
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);
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);
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\bitconverter.cs (18)
161
ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.startIndex,
ExceptionResource
.ArgumentOutOfRange_Index);
165
ThrowHelper.ThrowArgumentException(
ExceptionResource
.Arg_ArrayPlusOffTooSmall);
180
ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.startIndex,
ExceptionResource
.ArgumentOutOfRange_Index);
184
ThrowHelper.ThrowArgumentException(
ExceptionResource
.Arg_ArrayPlusOffTooSmall);
212
ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.startIndex,
ExceptionResource
.ArgumentOutOfRange_Index);
216
ThrowHelper.ThrowArgumentException(
ExceptionResource
.Arg_ArrayPlusOffTooSmall);
243
ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.startIndex,
ExceptionResource
.ArgumentOutOfRange_Index);
247
ThrowHelper.ThrowArgumentException(
ExceptionResource
.Arg_ArrayPlusOffTooSmall);
279
ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.startIndex,
ExceptionResource
.ArgumentOutOfRange_Index);
281
ThrowHelper.ThrowArgumentException(
ExceptionResource
.Arg_ArrayPlusOffTooSmall);
295
ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.startIndex,
ExceptionResource
.ArgumentOutOfRange_Index);
297
ThrowHelper.ThrowArgumentException(
ExceptionResource
.Arg_ArrayPlusOffTooSmall);
311
ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.startIndex,
ExceptionResource
.ArgumentOutOfRange_Index);
313
ThrowHelper.ThrowArgumentException(
ExceptionResource
.Arg_ArrayPlusOffTooSmall);
326
ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.startIndex,
ExceptionResource
.ArgumentOutOfRange_Index);
328
ThrowHelper.ThrowArgumentException(
ExceptionResource
.Arg_ArrayPlusOffTooSmall);
342
ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.startIndex,
ExceptionResource
.ArgumentOutOfRange_Index);
344
ThrowHelper.ThrowArgumentException(
ExceptionResource
.Arg_ArrayPlusOffTooSmall);
system\collections\generic\comparer.cs (1)
80
ThrowHelper.ThrowArgumentException(
ExceptionResource
.Argument_InvalidArgumentForComparison);
system\collections\generic\dictionary.cs (45)
252
ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.index,
ExceptionResource
.ArgumentOutOfRange_NeedNonNegNum);
256
ThrowHelper.ThrowArgumentException(
ExceptionResource
.Arg_ArrayPlusOffTooSmall);
336
ThrowHelper.ThrowArgumentException(
ExceptionResource
.Argument_AddingDuplicate);
421
ThrowHelper.ThrowSerializationException(
ExceptionResource
.Serialization_MissingKeys);
426
ThrowHelper.ThrowSerializationException(
ExceptionResource
.Serialization_NullKey);
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);
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);
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);
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);
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);
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 (39)
61
if (capacity < 0) ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.capacity,
ExceptionResource
.ArgumentOutOfRange_NeedNonNegNum);
117
ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.value,
ExceptionResource
.ArgumentOutOfRange_SmallCapacity);
278
ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.index,
ExceptionResource
.ArgumentOutOfRange_NeedNonNegNum);
280
ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.count,
ExceptionResource
.ArgumentOutOfRange_NeedNonNegNum);
282
ThrowHelper.ThrowArgumentException(
ExceptionResource
.Argument_InvalidOffLen);
369
ThrowHelper.ThrowArgumentException(
ExceptionResource
.Arg_RankMultiDimNotSupported);
378
ThrowHelper.ThrowArgumentException(
ExceptionResource
.Argument_InvalidArrayType);
388
ThrowHelper.ThrowArgumentException(
ExceptionResource
.Argument_InvalidOffLen);
463
ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.startIndex,
ExceptionResource
.ArgumentOutOfRange_Index);
467
ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.count,
ExceptionResource
.ArgumentOutOfRange_Count);
521
ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.startIndex,
ExceptionResource
.ArgumentOutOfRange_Index);
527
ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.startIndex,
ExceptionResource
.ArgumentOutOfRange_Index);
533
ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.count,
ExceptionResource
.ArgumentOutOfRange_Count);
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);
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);
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);
1173
ThrowHelper.ThrowInvalidOperationException(
ExceptionResource
.InvalidOperation_EnumFailedVersion);
1190
ThrowHelper.ThrowInvalidOperationException(
ExceptionResource
.InvalidOperation_EnumOpCantHappen);
1198
ThrowHelper.ThrowInvalidOperationException(
ExceptionResource
.InvalidOperation_EnumFailedVersion);
system\collections\objectmodel\collection.cs (17)
50
ThrowHelper.ThrowNotSupportedException(
ExceptionResource
.NotSupported_ReadOnlyCollection);
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);
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);
271
ThrowHelper.ThrowNotSupportedException(
ExceptionResource
.NotSupported_ReadOnlyCollection);
301
ThrowHelper.ThrowNotSupportedException(
ExceptionResource
.NotSupported_ReadOnlyCollection);
316
ThrowHelper.ThrowNotSupportedException(
ExceptionResource
.NotSupported_ReadOnlyCollection);
system\collections\objectmodel\keyedcollection.cs (3)
44
ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.dictionaryCreationThreshold,
ExceptionResource
.ArgumentOutOfRange_InvalidThreshold);
138
ThrowHelper.ThrowArgumentException(
ExceptionResource
.Argument_ItemNotExist);
211
ThrowHelper.ThrowArgumentException(
ExceptionResource
.Argument_AddingDuplicate);
system\collections\objectmodel\readonlycollection.cs (19)
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);
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 (29)
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);
176
ThrowHelper.ThrowNotSupportedException(
ExceptionResource
.NotSupported_ReadOnlyCollection);
180
ThrowHelper.ThrowNotSupportedException(
ExceptionResource
.NotSupported_ReadOnlyCollection);
210
ThrowHelper.ThrowNotSupportedException(
ExceptionResource
.NotSupported_ReadOnlyCollection);
227
ThrowHelper.ThrowNotSupportedException(
ExceptionResource
.NotSupported_ReadOnlyCollection);
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);
373
ThrowHelper.ThrowNotSupportedException(
ExceptionResource
.NotSupported_ReadOnlyCollection);
378
ThrowHelper.ThrowNotSupportedException(
ExceptionResource
.NotSupported_ReadOnlyCollection);
401
ThrowHelper.ThrowNotSupportedException(
ExceptionResource
.NotSupported_ReadOnlyCollection);
472
ThrowHelper.ThrowNotSupportedException(
ExceptionResource
.NotSupported_ReadOnlyCollection);
477
ThrowHelper.ThrowNotSupportedException(
ExceptionResource
.NotSupported_ReadOnlyCollection);
500
ThrowHelper.ThrowNotSupportedException(
ExceptionResource
.NotSupported_ReadOnlyCollection);
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 (1)
146
ThrowHelper.ThrowArgumentException(
ExceptionResource
.Argument_AddingDuplicate);
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 (57)
56
ThrowArgumentOutOfRangeException(ExceptionArgument.index,
ExceptionResource
.ArgumentOutOfRange_Index);
71
internal static void ThrowArgumentException(
ExceptionResource
resource) {
75
internal static void ThrowArgumentException(
ExceptionResource
resource, ExceptionArgument argument) {
87
internal static void ThrowArgumentOutOfRangeException(ExceptionArgument argument,
ExceptionResource
resource) {
98
internal static void ThrowInvalidOperationException(
ExceptionResource
resource) {
102
internal static void ThrowSerializationException(
ExceptionResource
resource) {
106
internal static void ThrowSecurityException(
ExceptionResource
resource) {
110
internal static void ThrowNotSupportedException(
ExceptionResource
resource) {
114
internal static void ThrowUnauthorizedAccessException(
ExceptionResource
resource) {
118
internal static void ThrowObjectDisposedException(string objectName,
ExceptionResource
resource) {
243
internal static string GetResourceName(
ExceptionResource
resource) {
247
case
ExceptionResource
.Argument_ImplementIComparable:
251
case
ExceptionResource
.Argument_AddingDuplicate:
255
case
ExceptionResource
.ArgumentOutOfRange_BiggerThanCollection:
259
case
ExceptionResource
.ArgumentOutOfRange_Count:
263
case
ExceptionResource
.ArgumentOutOfRange_Index:
267
case
ExceptionResource
.ArgumentOutOfRange_InvalidThreshold:
271
case
ExceptionResource
.ArgumentOutOfRange_ListInsert:
275
case
ExceptionResource
.ArgumentOutOfRange_NeedNonNegNum:
279
case
ExceptionResource
.ArgumentOutOfRange_SmallCapacity:
283
case
ExceptionResource
.Arg_ArrayPlusOffTooSmall:
287
case
ExceptionResource
.Arg_RankMultiDimNotSupported:
291
case
ExceptionResource
.Arg_NonZeroLowerBound:
295
case
ExceptionResource
.Argument_InvalidArrayType:
299
case
ExceptionResource
.Argument_InvalidOffLen:
303
case
ExceptionResource
.Argument_ItemNotExist:
307
case
ExceptionResource
.InvalidOperation_CannotRemoveFromStackOrQueue:
311
case
ExceptionResource
.InvalidOperation_EmptyQueue:
315
case
ExceptionResource
.InvalidOperation_EnumOpCantHappen:
319
case
ExceptionResource
.InvalidOperation_EnumFailedVersion:
323
case
ExceptionResource
.InvalidOperation_EmptyStack:
327
case
ExceptionResource
.InvalidOperation_EnumNotStarted:
331
case
ExceptionResource
.InvalidOperation_EnumEnded:
335
case
ExceptionResource
.NotSupported_KeyCollectionSet:
339
case
ExceptionResource
.NotSupported_ReadOnlyCollection:
343
case
ExceptionResource
.NotSupported_ValueCollectionSet:
348
case
ExceptionResource
.NotSupported_SortedListNestedWrite:
353
case
ExceptionResource
.Serialization_InvalidOnDeser:
357
case
ExceptionResource
.Serialization_MissingKeys:
361
case
ExceptionResource
.Serialization_NullKey:
365
case
ExceptionResource
.Argument_InvalidType:
369
case
ExceptionResource
.Argument_InvalidArgumentForComparison:
373
case
ExceptionResource
.InvalidOperation_NoValue:
377
case
ExceptionResource
.InvalidOperation_RegRemoveSubKey:
381
case
ExceptionResource
.Arg_RegSubKeyAbsent:
385
case
ExceptionResource
.Arg_RegSubKeyValueAbsent:
389
case
ExceptionResource
.Arg_RegKeyDelHive:
393
case
ExceptionResource
.Security_RegistryPermission:
397
case
ExceptionResource
.Arg_RegSetStrArrNull:
401
case
ExceptionResource
.Arg_RegSetMismatchedKind:
405
case
ExceptionResource
.UnauthorizedAccess_RegistryNoWrite:
409
case
ExceptionResource
.ObjectDisposed_RegKeyClosed:
413
case
ExceptionResource
.Arg_RegKeyStrLenBug:
417
case
ExceptionResource
.Argument_InvalidRegistryKeyPermissionCheck:
421
case
ExceptionResource
.NotSupported_InComparableType:
425
case
ExceptionResource
.Argument_InvalidRegistryOptionsCheck:
429
case
ExceptionResource
.Argument_InvalidRegistryViewCheck: