176 references to ThrowHelper
System (176)
compmod\system\collections\generic\debugview.cs (2)
105ThrowHelper.ThrowArgumentNullException(ExceptionArgument.collection); 125ThrowHelper.ThrowArgumentNullException(ExceptionArgument.collection);
compmod\system\collections\generic\linkedlist.cs (1)
510ThrowHelper.ThrowInvalidOperationException(ExceptionResource.InvalidOperation_EnumOpCantHappen);
compmod\system\collections\generic\queue.cs (19)
61ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.capacity, ExceptionResource.ArgumentOutOfRange_NeedNonNegNumRequired); 76ThrowHelper.ThrowArgumentNullException(ExceptionArgument.collection); 132ThrowHelper.ThrowArgumentNullException(ExceptionArgument.array); 136ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.arrayIndex, ExceptionResource.ArgumentOutOfRange_Index); 141ThrowHelper.ThrowArgumentException(ExceptionResource.Argument_InvalidOffLen); 158ThrowHelper.ThrowArgumentNullException(ExceptionArgument.array); 162ThrowHelper.ThrowArgumentException(ExceptionResource.Arg_RankMultiDimNotSupported); 166ThrowHelper.ThrowArgumentException(ExceptionResource.Arg_NonZeroLowerBound); 171ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.index, ExceptionResource.ArgumentOutOfRange_Index); 175ThrowHelper.ThrowArgumentException(ExceptionResource.Argument_InvalidOffLen); 191ThrowHelper.ThrowArgumentException(ExceptionResource.Argument_InvalidArrayType); 239ThrowHelper.ThrowInvalidOperationException(ExceptionResource.InvalidOperation_EmptyQueue); 255ThrowHelper.ThrowInvalidOperationException(ExceptionResource.InvalidOperation_EmptyQueue); 369if (_version != _q._version) ThrowHelper.ThrowInvalidOperationException(ExceptionResource.InvalidOperation_EnumFailedVersion); 392ThrowHelper.ThrowInvalidOperationException(ExceptionResource.InvalidOperation_EnumNotStarted); 394ThrowHelper.ThrowInvalidOperationException(ExceptionResource.InvalidOperation_EnumEnded); 405ThrowHelper.ThrowInvalidOperationException(ExceptionResource.InvalidOperation_EnumNotStarted); 407ThrowHelper.ThrowInvalidOperationException(ExceptionResource.InvalidOperation_EnumEnded); 414if (_version != _q._version) ThrowHelper.ThrowInvalidOperationException(ExceptionResource.InvalidOperation_EnumFailedVersion);
compmod\system\collections\generic\sorteddictionary.cs (52)
33ThrowHelper.ThrowArgumentNullException(ExceptionArgument.dictionary); 87ThrowHelper.ThrowArgumentNullException(ExceptionArgument.key); 92ThrowHelper.ThrowKeyNotFoundException(); 99ThrowHelper.ThrowArgumentNullException(ExceptionArgument.key); 164ThrowHelper.ThrowArgumentNullException(ExceptionArgument.key); 175ThrowHelper.ThrowArgumentNullException(ExceptionArgument.key); 220ThrowHelper.ThrowArgumentNullException(ExceptionArgument.key); 228ThrowHelper.ThrowArgumentNullException(ExceptionArgument.key); 274ThrowHelper.ThrowArgumentNullException(ExceptionArgument.key); 277ThrowHelper.IfNullAndNullsAreIllegalThenThrow<TValue>(value, ExceptionArgument.value); 285ThrowHelper.ThrowWrongValueTypeArgumentException(value, typeof(TValue)); 289ThrowHelper.ThrowWrongKeyTypeArgumentException(key, typeof(TKey)); 297ThrowHelper.ThrowArgumentNullException(ExceptionArgument.key); 300ThrowHelper.IfNullAndNullsAreIllegalThenThrow<TValue>(value, ExceptionArgument.value); 309ThrowHelper.ThrowWrongValueTypeArgumentException(value, typeof(TValue)); 313ThrowHelper.ThrowWrongKeyTypeArgumentException(key, typeof(TKey)); 326ThrowHelper.ThrowArgumentNullException(ExceptionArgument.key); 400ThrowHelper.ThrowInvalidOperationException(ExceptionResource.InvalidOperation_EnumOpCantHappen); 415ThrowHelper.ThrowInvalidOperationException(ExceptionResource.InvalidOperation_EnumOpCantHappen); 425ThrowHelper.ThrowInvalidOperationException(ExceptionResource.InvalidOperation_EnumOpCantHappen); 435ThrowHelper.ThrowInvalidOperationException(ExceptionResource.InvalidOperation_EnumOpCantHappen); 453ThrowHelper.ThrowArgumentNullException(ExceptionArgument.dictionary); 472ThrowHelper.ThrowArgumentNullException(ExceptionArgument.array); 476ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.index); 480ThrowHelper.ThrowArgumentException(ExceptionResource.Arg_ArrayPlusOffTooSmall); 488ThrowHelper.ThrowArgumentNullException(ExceptionArgument.array); 492ThrowHelper.ThrowArgumentException(ExceptionResource.Arg_RankMultiDimNotSupported); 496ThrowHelper.ThrowArgumentException(ExceptionResource.Arg_NonZeroLowerBound); 500ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.arrayIndex, ExceptionResource.ArgumentOutOfRange_NeedNonNegNum); 504ThrowHelper.ThrowArgumentException(ExceptionResource.Arg_ArrayPlusOffTooSmall); 514ThrowHelper.ThrowArgumentException(ExceptionResource.Argument_InvalidArrayType); 521ThrowHelper.ThrowArgumentException(ExceptionResource.Argument_InvalidArrayType); 535ThrowHelper.ThrowNotSupportedException(ExceptionResource.NotSupported_KeyCollectionSet); 539ThrowHelper.ThrowNotSupportedException(ExceptionResource.NotSupported_KeyCollectionSet); 547ThrowHelper.ThrowNotSupportedException(ExceptionResource.NotSupported_KeyCollectionSet); 584ThrowHelper.ThrowInvalidOperationException(ExceptionResource.InvalidOperation_EnumOpCantHappen); 608ThrowHelper.ThrowArgumentNullException(ExceptionArgument.dictionary); 627ThrowHelper.ThrowArgumentNullException(ExceptionArgument.array); 631ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.index); 635ThrowHelper.ThrowArgumentException(ExceptionResource.Arg_ArrayPlusOffTooSmall); 643ThrowHelper.ThrowArgumentNullException(ExceptionArgument.array); 647ThrowHelper.ThrowArgumentException(ExceptionResource.Arg_RankMultiDimNotSupported); 651ThrowHelper.ThrowArgumentException(ExceptionResource.Arg_NonZeroLowerBound); 655ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.arrayIndex, ExceptionResource.ArgumentOutOfRange_NeedNonNegNum); 659ThrowHelper.ThrowArgumentException(ExceptionResource.Arg_ArrayPlusOffTooSmall); 669ThrowHelper.ThrowArgumentException(ExceptionResource.Argument_InvalidArrayType); 676ThrowHelper.ThrowArgumentException(ExceptionResource.Argument_InvalidArrayType); 690ThrowHelper.ThrowNotSupportedException(ExceptionResource.NotSupported_ValueCollectionSet); 694ThrowHelper.ThrowNotSupportedException(ExceptionResource.NotSupported_ValueCollectionSet); 702ThrowHelper.ThrowNotSupportedException(ExceptionResource.NotSupported_ValueCollectionSet); 739ThrowHelper.ThrowInvalidOperationException(ExceptionResource.InvalidOperation_EnumOpCantHappen); 805ThrowHelper.ThrowArgumentException(ExceptionResource.Argument_AddingDuplicate);
compmod\system\collections\generic\sortedlist.cs (59)
108ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.capacity, ExceptionResource.ArgumentOutOfRange_NeedNonNegNumRequired); 166ThrowHelper.ThrowArgumentNullException(ExceptionArgument.dictionary); 178if (key == null) ThrowHelper.ThrowArgumentNullException(ExceptionArgument.key); 181ThrowHelper.ThrowArgumentException(ExceptionResource.Argument_AddingDuplicate); 219ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.value, ExceptionResource.ArgumentOutOfRange_SmallCapacity); 249ThrowHelper.ThrowArgumentNullException(ExceptionArgument.key); 252ThrowHelper.IfNullAndNullsAreIllegalThenThrow<TValue>(value, ExceptionArgument.value); 261ThrowHelper.ThrowWrongValueTypeArgumentException(value, typeof(TValue)); 265ThrowHelper.ThrowWrongKeyTypeArgumentException(key, typeof(TKey)); 408ThrowHelper.ThrowArgumentNullException(ExceptionArgument.array); 412ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.arrayIndex, ExceptionResource.ArgumentOutOfRange_NeedNonNegNum); 416ThrowHelper.ThrowArgumentException(ExceptionResource.Arg_ArrayPlusOffTooSmall); 427ThrowHelper.ThrowArgumentNullException(ExceptionArgument.array); 431ThrowHelper.ThrowArgumentException(ExceptionResource.Arg_RankMultiDimNotSupported); 435ThrowHelper.ThrowArgumentException(ExceptionResource.Arg_NonZeroLowerBound); 439ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.arrayIndex, ExceptionResource.ArgumentOutOfRange_NeedNonNegNum); 443ThrowHelper.ThrowArgumentException(ExceptionResource.Arg_ArrayPlusOffTooSmall); 455ThrowHelper.ThrowArgumentException(ExceptionResource.Argument_InvalidArrayType); 464ThrowHelper.ThrowArgumentException(ExceptionResource.Argument_InvalidArrayType); 489ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.index, ExceptionResource.ArgumentOutOfRange_Index); 515if (index < 0 || index >= _size) ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.index, ExceptionResource.ArgumentOutOfRange_Index); 529ThrowHelper.ThrowKeyNotFoundException(); 533if (((Object) key) == null) ThrowHelper.ThrowArgumentNullException(ExceptionArgument.key); 557ThrowHelper.ThrowArgumentNullException(ExceptionArgument.key); 560ThrowHelper.IfNullAndNullsAreIllegalThenThrow<TValue>(value, ExceptionArgument.value); 568ThrowHelper.ThrowWrongValueTypeArgumentException(value, typeof(TValue)); 572ThrowHelper.ThrowWrongKeyTypeArgumentException(key, typeof(TKey)); 586ThrowHelper.ThrowArgumentNullException(ExceptionArgument.key); 629if (index < 0 || index >= _size) ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.index, ExceptionResource.ArgumentOutOfRange_Index); 675ThrowHelper.ThrowArgumentNullException(ExceptionArgument.key); 718ThrowHelper.ThrowInvalidOperationException(ExceptionResource.InvalidOperation_EnumOpCantHappen); 726if (version != _sortedList.version) ThrowHelper.ThrowInvalidOperationException(ExceptionResource.InvalidOperation_EnumFailedVersion); 744ThrowHelper.ThrowInvalidOperationException(ExceptionResource.InvalidOperation_EnumOpCantHappen); 760ThrowHelper.ThrowInvalidOperationException(ExceptionResource.InvalidOperation_EnumOpCantHappen); 774ThrowHelper.ThrowInvalidOperationException(ExceptionResource.InvalidOperation_EnumOpCantHappen); 783ThrowHelper.ThrowInvalidOperationException(ExceptionResource.InvalidOperation_EnumFailedVersion); 814ThrowHelper.ThrowInvalidOperationException(ExceptionResource.InvalidOperation_EnumFailedVersion); 837ThrowHelper.ThrowInvalidOperationException(ExceptionResource.InvalidOperation_EnumOpCantHappen); 846ThrowHelper.ThrowInvalidOperationException(ExceptionResource.InvalidOperation_EnumFailedVersion); 875ThrowHelper.ThrowInvalidOperationException(ExceptionResource.InvalidOperation_EnumFailedVersion); 898ThrowHelper.ThrowInvalidOperationException(ExceptionResource.InvalidOperation_EnumOpCantHappen); 907ThrowHelper.ThrowInvalidOperationException(ExceptionResource.InvalidOperation_EnumFailedVersion); 944ThrowHelper.ThrowNotSupportedException(ExceptionResource.NotSupported_SortedListNestedWrite); 948ThrowHelper.ThrowNotSupportedException(ExceptionResource.NotSupported_SortedListNestedWrite); 962ThrowHelper.ThrowArgumentException(ExceptionResource.Arg_RankMultiDimNotSupported); 969ThrowHelper.ThrowArgumentException(ExceptionResource.Argument_InvalidArrayType); 974ThrowHelper.ThrowNotSupportedException(ExceptionResource.NotSupported_SortedListNestedWrite); 982ThrowHelper.ThrowNotSupportedException(ExceptionResource.NotSupported_KeyCollectionSet); 996ThrowHelper.ThrowArgumentNullException(ExceptionArgument.key); 1005ThrowHelper.ThrowNotSupportedException(ExceptionResource.NotSupported_SortedListNestedWrite); 1010ThrowHelper.ThrowNotSupportedException(ExceptionResource.NotSupported_SortedListNestedWrite); 1044ThrowHelper.ThrowNotSupportedException(ExceptionResource.NotSupported_SortedListNestedWrite); 1048ThrowHelper.ThrowNotSupportedException(ExceptionResource.NotSupported_SortedListNestedWrite); 1062ThrowHelper.ThrowArgumentException(ExceptionResource.Arg_RankMultiDimNotSupported); 1069ThrowHelper.ThrowArgumentException(ExceptionResource.Argument_InvalidArrayType); 1074ThrowHelper.ThrowNotSupportedException(ExceptionResource.NotSupported_SortedListNestedWrite); 1082ThrowHelper.ThrowNotSupportedException(ExceptionResource.NotSupported_SortedListNestedWrite); 1099ThrowHelper.ThrowNotSupportedException(ExceptionResource.NotSupported_SortedListNestedWrite); 1104ThrowHelper.ThrowNotSupportedException(ExceptionResource.NotSupported_SortedListNestedWrite);
compmod\system\collections\generic\sortedset.cs (23)
588ThrowHelper.ThrowArgumentNullException(ExceptionArgument.array); 592ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.index); 620ThrowHelper.ThrowArgumentNullException(ExceptionArgument.array); 624ThrowHelper.ThrowArgumentException(ExceptionResource.Arg_RankMultiDimNotSupported); 628ThrowHelper.ThrowArgumentException(ExceptionResource.Arg_NonZeroLowerBound); 632ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.arrayIndex, ExceptionResource.ArgumentOutOfRange_NeedNonNegNum); 636ThrowHelper.ThrowArgumentException(ExceptionResource.Arg_ArrayPlusOffTooSmall); 645ThrowHelper.ThrowArgumentException(ExceptionResource.Argument_InvalidArrayType); 651ThrowHelper.ThrowArgumentException(ExceptionResource.Argument_InvalidArrayType); 1781ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.collection); 2004ThrowHelper.ThrowArgumentNullException(ExceptionArgument.info); 2025ThrowHelper.ThrowSerializationException(ExceptionResource.Serialization_InvalidOnDeser); 2040ThrowHelper.ThrowSerializationException(ExceptionResource.Serialization_MissingValues); 2053ThrowHelper.ThrowSerializationException(ExceptionResource.Serialization_MismatchedCount); 2078ThrowHelper.ThrowArgumentNullException(ExceptionArgument.info); 2102ThrowHelper.ThrowSerializationException(ExceptionResource.Serialization_InvalidOnDeser); 2112ThrowHelper.ThrowSerializationException(ExceptionResource.Serialization_MissingValues); 2122ThrowHelper.ThrowSerializationException(ExceptionResource.Serialization_MismatchedCount); 2221ThrowHelper.ThrowArgumentNullException(ExceptionArgument.info); 2237ThrowHelper.ThrowSerializationException(ExceptionResource.Serialization_InvalidOnDeser); 2287ThrowHelper.ThrowInvalidOperationException(ExceptionResource.InvalidOperation_EnumFailedVersion); 2328ThrowHelper.ThrowInvalidOperationException(ExceptionResource.InvalidOperation_EnumOpCantHappen); 2343ThrowHelper.ThrowInvalidOperationException(ExceptionResource.InvalidOperation_EnumFailedVersion);
compmod\system\collections\generic\stack.cs (19)
56ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.capacity, ExceptionResource.ArgumentOutOfRange_NeedNonNegNumRequired); 69ThrowHelper.ThrowArgumentNullException(ExceptionArgument.collection); 139ThrowHelper.ThrowArgumentNullException(ExceptionArgument.array); 143ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.arrayIndex, ExceptionResource.ArgumentOutOfRange_NeedNonNegNum); 147ThrowHelper.ThrowArgumentException(ExceptionResource.Argument_InvalidOffLen); 156ThrowHelper.ThrowArgumentNullException(ExceptionArgument.array); 160ThrowHelper.ThrowArgumentException(ExceptionResource.Arg_RankMultiDimNotSupported); 164ThrowHelper.ThrowArgumentException(ExceptionResource.Arg_NonZeroLowerBound); 168ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.arrayIndex, ExceptionResource.ArgumentOutOfRange_NeedNonNegNum); 172ThrowHelper.ThrowArgumentException(ExceptionResource.Argument_InvalidOffLen); 180ThrowHelper.ThrowArgumentException(ExceptionResource.Argument_InvalidArrayType); 215ThrowHelper.ThrowInvalidOperationException(ExceptionResource.InvalidOperation_EmptyStack); 224ThrowHelper.ThrowInvalidOperationException(ExceptionResource.InvalidOperation_EmptyStack); 285if (_version != _stack._version) ThrowHelper.ThrowInvalidOperationException(ExceptionResource.InvalidOperation_EnumFailedVersion); 308if (_index == -2) ThrowHelper.ThrowInvalidOperationException(ExceptionResource.InvalidOperation_EnumNotStarted); 309if (_index == -1) ThrowHelper.ThrowInvalidOperationException(ExceptionResource.InvalidOperation_EnumEnded); 316if (_index == -2) ThrowHelper.ThrowInvalidOperationException(ExceptionResource.InvalidOperation_EnumNotStarted); 317if (_index == -1) ThrowHelper.ThrowInvalidOperationException(ExceptionResource.InvalidOperation_EnumEnded); 323if (_version != _stack._version) ThrowHelper.ThrowInvalidOperationException(ExceptionResource.InvalidOperation_EnumFailedVersion);
compmod\system\collections\generic\throwhelper.cs (1)
96ThrowHelper.ThrowArgumentNullException(argName);