149 references to ExceptionResource
System (149)
compmod\system\collections\generic\linkedlist.cs (1)
510
ThrowHelper.ThrowInvalidOperationException(
ExceptionResource
.InvalidOperation_EnumOpCantHappen);
compmod\system\collections\generic\queue.cs (16)
61
ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.capacity,
ExceptionResource
.ArgumentOutOfRange_NeedNonNegNumRequired);
136
ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.arrayIndex,
ExceptionResource
.ArgumentOutOfRange_Index);
141
ThrowHelper.ThrowArgumentException(
ExceptionResource
.Argument_InvalidOffLen);
162
ThrowHelper.ThrowArgumentException(
ExceptionResource
.Arg_RankMultiDimNotSupported);
166
ThrowHelper.ThrowArgumentException(
ExceptionResource
.Arg_NonZeroLowerBound);
171
ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.index,
ExceptionResource
.ArgumentOutOfRange_Index);
175
ThrowHelper.ThrowArgumentException(
ExceptionResource
.Argument_InvalidOffLen);
191
ThrowHelper.ThrowArgumentException(
ExceptionResource
.Argument_InvalidArrayType);
239
ThrowHelper.ThrowInvalidOperationException(
ExceptionResource
.InvalidOperation_EmptyQueue);
255
ThrowHelper.ThrowInvalidOperationException(
ExceptionResource
.InvalidOperation_EmptyQueue);
369
if (_version != _q._version) ThrowHelper.ThrowInvalidOperationException(
ExceptionResource
.InvalidOperation_EnumFailedVersion);
392
ThrowHelper.ThrowInvalidOperationException(
ExceptionResource
.InvalidOperation_EnumNotStarted);
394
ThrowHelper.ThrowInvalidOperationException(
ExceptionResource
.InvalidOperation_EnumEnded);
405
ThrowHelper.ThrowInvalidOperationException(
ExceptionResource
.InvalidOperation_EnumNotStarted);
407
ThrowHelper.ThrowInvalidOperationException(
ExceptionResource
.InvalidOperation_EnumEnded);
414
if (_version != _q._version) ThrowHelper.ThrowInvalidOperationException(
ExceptionResource
.InvalidOperation_EnumFailedVersion);
compmod\system\collections\generic\sorteddictionary.cs (27)
400
ThrowHelper.ThrowInvalidOperationException(
ExceptionResource
.InvalidOperation_EnumOpCantHappen);
415
ThrowHelper.ThrowInvalidOperationException(
ExceptionResource
.InvalidOperation_EnumOpCantHappen);
425
ThrowHelper.ThrowInvalidOperationException(
ExceptionResource
.InvalidOperation_EnumOpCantHappen);
435
ThrowHelper.ThrowInvalidOperationException(
ExceptionResource
.InvalidOperation_EnumOpCantHappen);
480
ThrowHelper.ThrowArgumentException(
ExceptionResource
.Arg_ArrayPlusOffTooSmall);
492
ThrowHelper.ThrowArgumentException(
ExceptionResource
.Arg_RankMultiDimNotSupported);
496
ThrowHelper.ThrowArgumentException(
ExceptionResource
.Arg_NonZeroLowerBound);
500
ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.arrayIndex,
ExceptionResource
.ArgumentOutOfRange_NeedNonNegNum);
504
ThrowHelper.ThrowArgumentException(
ExceptionResource
.Arg_ArrayPlusOffTooSmall);
514
ThrowHelper.ThrowArgumentException(
ExceptionResource
.Argument_InvalidArrayType);
521
ThrowHelper.ThrowArgumentException(
ExceptionResource
.Argument_InvalidArrayType);
535
ThrowHelper.ThrowNotSupportedException(
ExceptionResource
.NotSupported_KeyCollectionSet);
539
ThrowHelper.ThrowNotSupportedException(
ExceptionResource
.NotSupported_KeyCollectionSet);
547
ThrowHelper.ThrowNotSupportedException(
ExceptionResource
.NotSupported_KeyCollectionSet);
584
ThrowHelper.ThrowInvalidOperationException(
ExceptionResource
.InvalidOperation_EnumOpCantHappen);
635
ThrowHelper.ThrowArgumentException(
ExceptionResource
.Arg_ArrayPlusOffTooSmall);
647
ThrowHelper.ThrowArgumentException(
ExceptionResource
.Arg_RankMultiDimNotSupported);
651
ThrowHelper.ThrowArgumentException(
ExceptionResource
.Arg_NonZeroLowerBound);
655
ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.arrayIndex,
ExceptionResource
.ArgumentOutOfRange_NeedNonNegNum);
659
ThrowHelper.ThrowArgumentException(
ExceptionResource
.Arg_ArrayPlusOffTooSmall);
669
ThrowHelper.ThrowArgumentException(
ExceptionResource
.Argument_InvalidArrayType);
676
ThrowHelper.ThrowArgumentException(
ExceptionResource
.Argument_InvalidArrayType);
690
ThrowHelper.ThrowNotSupportedException(
ExceptionResource
.NotSupported_ValueCollectionSet);
694
ThrowHelper.ThrowNotSupportedException(
ExceptionResource
.NotSupported_ValueCollectionSet);
702
ThrowHelper.ThrowNotSupportedException(
ExceptionResource
.NotSupported_ValueCollectionSet);
739
ThrowHelper.ThrowInvalidOperationException(
ExceptionResource
.InvalidOperation_EnumOpCantHappen);
805
ThrowHelper.ThrowArgumentException(
ExceptionResource
.Argument_AddingDuplicate);
compmod\system\collections\generic\sortedlist.cs (42)
108
ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.capacity,
ExceptionResource
.ArgumentOutOfRange_NeedNonNegNumRequired);
181
ThrowHelper.ThrowArgumentException(
ExceptionResource
.Argument_AddingDuplicate);
219
ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.value,
ExceptionResource
.ArgumentOutOfRange_SmallCapacity);
412
ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.arrayIndex,
ExceptionResource
.ArgumentOutOfRange_NeedNonNegNum);
416
ThrowHelper.ThrowArgumentException(
ExceptionResource
.Arg_ArrayPlusOffTooSmall);
431
ThrowHelper.ThrowArgumentException(
ExceptionResource
.Arg_RankMultiDimNotSupported);
435
ThrowHelper.ThrowArgumentException(
ExceptionResource
.Arg_NonZeroLowerBound);
439
ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.arrayIndex,
ExceptionResource
.ArgumentOutOfRange_NeedNonNegNum);
443
ThrowHelper.ThrowArgumentException(
ExceptionResource
.Arg_ArrayPlusOffTooSmall);
455
ThrowHelper.ThrowArgumentException(
ExceptionResource
.Argument_InvalidArrayType);
464
ThrowHelper.ThrowArgumentException(
ExceptionResource
.Argument_InvalidArrayType);
489
ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.index,
ExceptionResource
.ArgumentOutOfRange_Index);
515
if (index < 0 || index >= _size) ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.index,
ExceptionResource
.ArgumentOutOfRange_Index);
629
if (index < 0 || index >= _size) ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.index,
ExceptionResource
.ArgumentOutOfRange_Index);
718
ThrowHelper.ThrowInvalidOperationException(
ExceptionResource
.InvalidOperation_EnumOpCantHappen);
726
if (version != _sortedList.version) ThrowHelper.ThrowInvalidOperationException(
ExceptionResource
.InvalidOperation_EnumFailedVersion);
744
ThrowHelper.ThrowInvalidOperationException(
ExceptionResource
.InvalidOperation_EnumOpCantHappen);
760
ThrowHelper.ThrowInvalidOperationException(
ExceptionResource
.InvalidOperation_EnumOpCantHappen);
774
ThrowHelper.ThrowInvalidOperationException(
ExceptionResource
.InvalidOperation_EnumOpCantHappen);
783
ThrowHelper.ThrowInvalidOperationException(
ExceptionResource
.InvalidOperation_EnumFailedVersion);
814
ThrowHelper.ThrowInvalidOperationException(
ExceptionResource
.InvalidOperation_EnumFailedVersion);
837
ThrowHelper.ThrowInvalidOperationException(
ExceptionResource
.InvalidOperation_EnumOpCantHappen);
846
ThrowHelper.ThrowInvalidOperationException(
ExceptionResource
.InvalidOperation_EnumFailedVersion);
875
ThrowHelper.ThrowInvalidOperationException(
ExceptionResource
.InvalidOperation_EnumFailedVersion);
898
ThrowHelper.ThrowInvalidOperationException(
ExceptionResource
.InvalidOperation_EnumOpCantHappen);
907
ThrowHelper.ThrowInvalidOperationException(
ExceptionResource
.InvalidOperation_EnumFailedVersion);
944
ThrowHelper.ThrowNotSupportedException(
ExceptionResource
.NotSupported_SortedListNestedWrite);
948
ThrowHelper.ThrowNotSupportedException(
ExceptionResource
.NotSupported_SortedListNestedWrite);
962
ThrowHelper.ThrowArgumentException(
ExceptionResource
.Arg_RankMultiDimNotSupported);
969
ThrowHelper.ThrowArgumentException(
ExceptionResource
.Argument_InvalidArrayType);
974
ThrowHelper.ThrowNotSupportedException(
ExceptionResource
.NotSupported_SortedListNestedWrite);
982
ThrowHelper.ThrowNotSupportedException(
ExceptionResource
.NotSupported_KeyCollectionSet);
1005
ThrowHelper.ThrowNotSupportedException(
ExceptionResource
.NotSupported_SortedListNestedWrite);
1010
ThrowHelper.ThrowNotSupportedException(
ExceptionResource
.NotSupported_SortedListNestedWrite);
1044
ThrowHelper.ThrowNotSupportedException(
ExceptionResource
.NotSupported_SortedListNestedWrite);
1048
ThrowHelper.ThrowNotSupportedException(
ExceptionResource
.NotSupported_SortedListNestedWrite);
1062
ThrowHelper.ThrowArgumentException(
ExceptionResource
.Arg_RankMultiDimNotSupported);
1069
ThrowHelper.ThrowArgumentException(
ExceptionResource
.Argument_InvalidArrayType);
1074
ThrowHelper.ThrowNotSupportedException(
ExceptionResource
.NotSupported_SortedListNestedWrite);
1082
ThrowHelper.ThrowNotSupportedException(
ExceptionResource
.NotSupported_SortedListNestedWrite);
1099
ThrowHelper.ThrowNotSupportedException(
ExceptionResource
.NotSupported_SortedListNestedWrite);
1104
ThrowHelper.ThrowNotSupportedException(
ExceptionResource
.NotSupported_SortedListNestedWrite);
compmod\system\collections\generic\sortedset.cs (16)
624
ThrowHelper.ThrowArgumentException(
ExceptionResource
.Arg_RankMultiDimNotSupported);
628
ThrowHelper.ThrowArgumentException(
ExceptionResource
.Arg_NonZeroLowerBound);
632
ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.arrayIndex,
ExceptionResource
.ArgumentOutOfRange_NeedNonNegNum);
636
ThrowHelper.ThrowArgumentException(
ExceptionResource
.Arg_ArrayPlusOffTooSmall);
645
ThrowHelper.ThrowArgumentException(
ExceptionResource
.Argument_InvalidArrayType);
651
ThrowHelper.ThrowArgumentException(
ExceptionResource
.Argument_InvalidArrayType);
2025
ThrowHelper.ThrowSerializationException(
ExceptionResource
.Serialization_InvalidOnDeser);
2040
ThrowHelper.ThrowSerializationException(
ExceptionResource
.Serialization_MissingValues);
2053
ThrowHelper.ThrowSerializationException(
ExceptionResource
.Serialization_MismatchedCount);
2102
ThrowHelper.ThrowSerializationException(
ExceptionResource
.Serialization_InvalidOnDeser);
2112
ThrowHelper.ThrowSerializationException(
ExceptionResource
.Serialization_MissingValues);
2122
ThrowHelper.ThrowSerializationException(
ExceptionResource
.Serialization_MismatchedCount);
2237
ThrowHelper.ThrowSerializationException(
ExceptionResource
.Serialization_InvalidOnDeser);
2287
ThrowHelper.ThrowInvalidOperationException(
ExceptionResource
.InvalidOperation_EnumFailedVersion);
2328
ThrowHelper.ThrowInvalidOperationException(
ExceptionResource
.InvalidOperation_EnumOpCantHappen);
2343
ThrowHelper.ThrowInvalidOperationException(
ExceptionResource
.InvalidOperation_EnumFailedVersion);
compmod\system\collections\generic\stack.cs (16)
56
ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.capacity,
ExceptionResource
.ArgumentOutOfRange_NeedNonNegNumRequired);
143
ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.arrayIndex,
ExceptionResource
.ArgumentOutOfRange_NeedNonNegNum);
147
ThrowHelper.ThrowArgumentException(
ExceptionResource
.Argument_InvalidOffLen);
160
ThrowHelper.ThrowArgumentException(
ExceptionResource
.Arg_RankMultiDimNotSupported);
164
ThrowHelper.ThrowArgumentException(
ExceptionResource
.Arg_NonZeroLowerBound);
168
ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.arrayIndex,
ExceptionResource
.ArgumentOutOfRange_NeedNonNegNum);
172
ThrowHelper.ThrowArgumentException(
ExceptionResource
.Argument_InvalidOffLen);
180
ThrowHelper.ThrowArgumentException(
ExceptionResource
.Argument_InvalidArrayType);
215
ThrowHelper.ThrowInvalidOperationException(
ExceptionResource
.InvalidOperation_EmptyStack);
224
ThrowHelper.ThrowInvalidOperationException(
ExceptionResource
.InvalidOperation_EmptyStack);
285
if (_version != _stack._version) ThrowHelper.ThrowInvalidOperationException(
ExceptionResource
.InvalidOperation_EnumFailedVersion);
308
if (_index == -2) ThrowHelper.ThrowInvalidOperationException(
ExceptionResource
.InvalidOperation_EnumNotStarted);
309
if (_index == -1) ThrowHelper.ThrowInvalidOperationException(
ExceptionResource
.InvalidOperation_EnumEnded);
316
if (_index == -2) ThrowHelper.ThrowInvalidOperationException(
ExceptionResource
.InvalidOperation_EnumNotStarted);
317
if (_index == -1) ThrowHelper.ThrowInvalidOperationException(
ExceptionResource
.InvalidOperation_EnumEnded);
323
if (_version != _stack._version) ThrowHelper.ThrowInvalidOperationException(
ExceptionResource
.InvalidOperation_EnumFailedVersion);
compmod\system\collections\generic\throwhelper.cs (31)
62
internal static void ThrowArgumentException(
ExceptionResource
resource) {
74
internal static void ThrowArgumentOutOfRangeException(ExceptionArgument argument,
ExceptionResource
resource) {
78
internal static void ThrowInvalidOperationException(
ExceptionResource
resource) {
83
internal static void ThrowSerializationException(
ExceptionResource
resource) {
88
internal static void ThrowNotSupportedException(
ExceptionResource
resource) {
185
internal static string GetResourceName(
ExceptionResource
resource) {
189
case
ExceptionResource
.Argument_ImplementIComparable:
193
case
ExceptionResource
.Argument_AddingDuplicate:
197
case
ExceptionResource
.ArgumentOutOfRange_Index:
201
case
ExceptionResource
.ArgumentOutOfRange_NeedNonNegNum:
205
case
ExceptionResource
.ArgumentOutOfRange_NeedNonNegNumRequired:
209
case
ExceptionResource
.ArgumentOutOfRange_SmallCapacity:
213
case
ExceptionResource
.Arg_ArrayPlusOffTooSmall:
217
case
ExceptionResource
.Arg_RankMultiDimNotSupported:
221
case
ExceptionResource
.Arg_NonZeroLowerBound:
225
case
ExceptionResource
.Argument_InvalidArrayType:
229
case
ExceptionResource
.Argument_InvalidOffLen:
233
case
ExceptionResource
.InvalidOperation_CannotRemoveFromStackOrQueue:
237
case
ExceptionResource
.InvalidOperation_EmptyCollection:
241
case
ExceptionResource
.InvalidOperation_EmptyQueue:
245
case
ExceptionResource
.InvalidOperation_EnumOpCantHappen:
249
case
ExceptionResource
.InvalidOperation_EnumFailedVersion:
253
case
ExceptionResource
.InvalidOperation_EmptyStack:
257
case
ExceptionResource
.InvalidOperation_EnumNotStarted:
261
case
ExceptionResource
.InvalidOperation_EnumEnded:
265
case
ExceptionResource
.NotSupported_KeyCollectionSet:
269
case
ExceptionResource
.NotSupported_SortedListNestedWrite:
274
case
ExceptionResource
.Serialization_InvalidOnDeser:
278
case
ExceptionResource
.Serialization_MissingValues:
282
case
ExceptionResource
.Serialization_MismatchedCount:
287
case
ExceptionResource
.NotSupported_ValueCollectionSet: