176 references to ThrowHelper
System (176)
compmod\system\collections\generic\debugview.cs (2)
105
ThrowHelper
.ThrowArgumentNullException(ExceptionArgument.collection);
125
ThrowHelper
.ThrowArgumentNullException(ExceptionArgument.collection);
compmod\system\collections\generic\linkedlist.cs (1)
510
ThrowHelper
.ThrowInvalidOperationException(ExceptionResource.InvalidOperation_EnumOpCantHappen);
compmod\system\collections\generic\queue.cs (19)
61
ThrowHelper
.ThrowArgumentOutOfRangeException(ExceptionArgument.capacity, ExceptionResource.ArgumentOutOfRange_NeedNonNegNumRequired);
76
ThrowHelper
.ThrowArgumentNullException(ExceptionArgument.collection);
132
ThrowHelper
.ThrowArgumentNullException(ExceptionArgument.array);
136
ThrowHelper
.ThrowArgumentOutOfRangeException(ExceptionArgument.arrayIndex, ExceptionResource.ArgumentOutOfRange_Index);
141
ThrowHelper
.ThrowArgumentException(ExceptionResource.Argument_InvalidOffLen);
158
ThrowHelper
.ThrowArgumentNullException(ExceptionArgument.array);
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 (52)
33
ThrowHelper
.ThrowArgumentNullException(ExceptionArgument.dictionary);
87
ThrowHelper
.ThrowArgumentNullException(ExceptionArgument.key);
92
ThrowHelper
.ThrowKeyNotFoundException();
99
ThrowHelper
.ThrowArgumentNullException(ExceptionArgument.key);
164
ThrowHelper
.ThrowArgumentNullException(ExceptionArgument.key);
175
ThrowHelper
.ThrowArgumentNullException(ExceptionArgument.key);
220
ThrowHelper
.ThrowArgumentNullException(ExceptionArgument.key);
228
ThrowHelper
.ThrowArgumentNullException(ExceptionArgument.key);
274
ThrowHelper
.ThrowArgumentNullException(ExceptionArgument.key);
277
ThrowHelper
.IfNullAndNullsAreIllegalThenThrow<TValue>(value, ExceptionArgument.value);
285
ThrowHelper
.ThrowWrongValueTypeArgumentException(value, typeof(TValue));
289
ThrowHelper
.ThrowWrongKeyTypeArgumentException(key, typeof(TKey));
297
ThrowHelper
.ThrowArgumentNullException(ExceptionArgument.key);
300
ThrowHelper
.IfNullAndNullsAreIllegalThenThrow<TValue>(value, ExceptionArgument.value);
309
ThrowHelper
.ThrowWrongValueTypeArgumentException(value, typeof(TValue));
313
ThrowHelper
.ThrowWrongKeyTypeArgumentException(key, typeof(TKey));
326
ThrowHelper
.ThrowArgumentNullException(ExceptionArgument.key);
400
ThrowHelper
.ThrowInvalidOperationException(ExceptionResource.InvalidOperation_EnumOpCantHappen);
415
ThrowHelper
.ThrowInvalidOperationException(ExceptionResource.InvalidOperation_EnumOpCantHappen);
425
ThrowHelper
.ThrowInvalidOperationException(ExceptionResource.InvalidOperation_EnumOpCantHappen);
435
ThrowHelper
.ThrowInvalidOperationException(ExceptionResource.InvalidOperation_EnumOpCantHappen);
453
ThrowHelper
.ThrowArgumentNullException(ExceptionArgument.dictionary);
472
ThrowHelper
.ThrowArgumentNullException(ExceptionArgument.array);
476
ThrowHelper
.ThrowArgumentOutOfRangeException(ExceptionArgument.index);
480
ThrowHelper
.ThrowArgumentException(ExceptionResource.Arg_ArrayPlusOffTooSmall);
488
ThrowHelper
.ThrowArgumentNullException(ExceptionArgument.array);
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);
608
ThrowHelper
.ThrowArgumentNullException(ExceptionArgument.dictionary);
627
ThrowHelper
.ThrowArgumentNullException(ExceptionArgument.array);
631
ThrowHelper
.ThrowArgumentOutOfRangeException(ExceptionArgument.index);
635
ThrowHelper
.ThrowArgumentException(ExceptionResource.Arg_ArrayPlusOffTooSmall);
643
ThrowHelper
.ThrowArgumentNullException(ExceptionArgument.array);
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 (59)
108
ThrowHelper
.ThrowArgumentOutOfRangeException(ExceptionArgument.capacity, ExceptionResource.ArgumentOutOfRange_NeedNonNegNumRequired);
166
ThrowHelper
.ThrowArgumentNullException(ExceptionArgument.dictionary);
178
if (key == null)
ThrowHelper
.ThrowArgumentNullException(ExceptionArgument.key);
181
ThrowHelper
.ThrowArgumentException(ExceptionResource.Argument_AddingDuplicate);
219
ThrowHelper
.ThrowArgumentOutOfRangeException(ExceptionArgument.value, ExceptionResource.ArgumentOutOfRange_SmallCapacity);
249
ThrowHelper
.ThrowArgumentNullException(ExceptionArgument.key);
252
ThrowHelper
.IfNullAndNullsAreIllegalThenThrow<TValue>(value, ExceptionArgument.value);
261
ThrowHelper
.ThrowWrongValueTypeArgumentException(value, typeof(TValue));
265
ThrowHelper
.ThrowWrongKeyTypeArgumentException(key, typeof(TKey));
408
ThrowHelper
.ThrowArgumentNullException(ExceptionArgument.array);
412
ThrowHelper
.ThrowArgumentOutOfRangeException(ExceptionArgument.arrayIndex, ExceptionResource.ArgumentOutOfRange_NeedNonNegNum);
416
ThrowHelper
.ThrowArgumentException(ExceptionResource.Arg_ArrayPlusOffTooSmall);
427
ThrowHelper
.ThrowArgumentNullException(ExceptionArgument.array);
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);
529
ThrowHelper
.ThrowKeyNotFoundException();
533
if (((Object) key) == null)
ThrowHelper
.ThrowArgumentNullException(ExceptionArgument.key);
557
ThrowHelper
.ThrowArgumentNullException(ExceptionArgument.key);
560
ThrowHelper
.IfNullAndNullsAreIllegalThenThrow<TValue>(value, ExceptionArgument.value);
568
ThrowHelper
.ThrowWrongValueTypeArgumentException(value, typeof(TValue));
572
ThrowHelper
.ThrowWrongKeyTypeArgumentException(key, typeof(TKey));
586
ThrowHelper
.ThrowArgumentNullException(ExceptionArgument.key);
629
if (index < 0 || index >= _size)
ThrowHelper
.ThrowArgumentOutOfRangeException(ExceptionArgument.index, ExceptionResource.ArgumentOutOfRange_Index);
675
ThrowHelper
.ThrowArgumentNullException(ExceptionArgument.key);
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);
996
ThrowHelper
.ThrowArgumentNullException(ExceptionArgument.key);
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 (23)
588
ThrowHelper
.ThrowArgumentNullException(ExceptionArgument.array);
592
ThrowHelper
.ThrowArgumentOutOfRangeException(ExceptionArgument.index);
620
ThrowHelper
.ThrowArgumentNullException(ExceptionArgument.array);
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);
1781
ThrowHelper
.ThrowArgumentOutOfRangeException(ExceptionArgument.collection);
2004
ThrowHelper
.ThrowArgumentNullException(ExceptionArgument.info);
2025
ThrowHelper
.ThrowSerializationException(ExceptionResource.Serialization_InvalidOnDeser);
2040
ThrowHelper
.ThrowSerializationException(ExceptionResource.Serialization_MissingValues);
2053
ThrowHelper
.ThrowSerializationException(ExceptionResource.Serialization_MismatchedCount);
2078
ThrowHelper
.ThrowArgumentNullException(ExceptionArgument.info);
2102
ThrowHelper
.ThrowSerializationException(ExceptionResource.Serialization_InvalidOnDeser);
2112
ThrowHelper
.ThrowSerializationException(ExceptionResource.Serialization_MissingValues);
2122
ThrowHelper
.ThrowSerializationException(ExceptionResource.Serialization_MismatchedCount);
2221
ThrowHelper
.ThrowArgumentNullException(ExceptionArgument.info);
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 (19)
56
ThrowHelper
.ThrowArgumentOutOfRangeException(ExceptionArgument.capacity, ExceptionResource.ArgumentOutOfRange_NeedNonNegNumRequired);
69
ThrowHelper
.ThrowArgumentNullException(ExceptionArgument.collection);
139
ThrowHelper
.ThrowArgumentNullException(ExceptionArgument.array);
143
ThrowHelper
.ThrowArgumentOutOfRangeException(ExceptionArgument.arrayIndex, ExceptionResource.ArgumentOutOfRange_NeedNonNegNum);
147
ThrowHelper
.ThrowArgumentException(ExceptionResource.Argument_InvalidOffLen);
156
ThrowHelper
.ThrowArgumentNullException(ExceptionArgument.array);
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 (1)
96
ThrowHelper
.ThrowArgumentNullException(argName);