217 references to ThrowHelper
Microsoft.CodeAnalysis (217)
src\Dependencies\Collections\ImmutableSegmentedHashSet`1.cs (3)
350ThrowHelper.ThrowArgumentNullException(ExceptionArgument.array); 352ThrowHelper.ThrowIndexArgumentOutOfRange_NeedNonNegNumException(); 354ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.index);
src\Dependencies\Collections\ImmutableSegmentedHashSet`1+ValueBuilder.cs (2)
108ThrowHelper.ThrowArgumentNullException(ExceptionArgument.other); 227ThrowHelper.ThrowArgumentNullException(ExceptionArgument.other);
src\Dependencies\Collections\ImmutableSegmentedList`1.cs (4)
132ThrowHelper.ThrowArgumentOutOfRange_IndexMustBeLessException(); 342ThrowHelper.ThrowIndexArgumentOutOfRange_NeedNonNegNumException(); 344ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.count); 555ThrowHelper.ThrowArgumentNullException(ExceptionArgument.comparison);
src\Dependencies\Collections\ImmutableSegmentedList`1+ValueBuilder.cs (4)
64ThrowHelper.ThrowArgumentOutOfRange_IndexMustBeLessException(); 245ThrowHelper.ThrowIndexArgumentOutOfRange_NeedNonNegNumException(); 247ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.count); 311ThrowHelper.ThrowArgumentNullException(ExceptionArgument.comparison);
src\Dependencies\Collections\Internal\ArraySortHelper.cs (12)
41ThrowHelper.ThrowArgumentException_BadComparer(comparer); 45ThrowHelper.ThrowInvalidOperationException(ExceptionResource.InvalidOperation_IComparerFailed, e); 58ThrowHelper.ThrowInvalidOperationException(ExceptionResource.InvalidOperation_IComparerFailed, e); 74ThrowHelper.ThrowArgumentException_BadComparer(comparer); 78ThrowHelper.ThrowInvalidOperationException(ExceptionResource.InvalidOperation_IComparerFailed, e); 331ThrowHelper.ThrowArgumentException_BadComparer(comparer); 335ThrowHelper.ThrowInvalidOperationException(ExceptionResource.InvalidOperation_IComparerFailed, e); 356ThrowHelper.ThrowInvalidOperationException(ExceptionResource.InvalidOperation_IComparerFailed, e); 681ThrowHelper.ThrowArgumentException_BadComparer(comparer); 685ThrowHelper.ThrowInvalidOperationException(ExceptionResource.InvalidOperation_IComparerFailed, e); 934ThrowHelper.ThrowArgumentException_BadComparer(comparer); 938ThrowHelper.ThrowInvalidOperationException(ExceptionResource.InvalidOperation_IComparerFailed, e);
src\Dependencies\Collections\Internal\SegmentedArraySegment`1.cs (3)
25ThrowHelper.ThrowIndexOutOfRangeException(); 34ThrowHelper.ThrowArgumentOutOfRangeException(); 47ThrowHelper.ThrowArgumentOutOfRangeException();
src\Dependencies\Collections\Internal\ThrowHelper.cs (1)
245ThrowHelper.ThrowArgumentNullException(argName);
src\Dependencies\Collections\RoslynEnumerable.cs (1)
16ThrowHelper.ThrowArgumentNullException(ExceptionArgument.source);
src\Dependencies\Collections\SegmentedArray.cs (19)
53ThrowHelper.ThrowArgumentNullException(ExceptionArgument.destinationArray); 139ThrowHelper.ThrowArgumentNullException(ExceptionArgument.destinationArray); 190ThrowHelper.ThrowIndexArgumentOutOfRange_NeedNonNegNumException(); 192ThrowHelper.ThrowLengthArgumentOutOfRange_ArgumentOutOfRange_NeedNonNegNum(); 194ThrowHelper.ThrowArgumentException(ExceptionResource.Argument_InvalidOffLen); 218ThrowHelper.ThrowStartIndexArgumentOutOfRange_ArgumentOutOfRange_IndexMustBeLessOrEqual(); 223ThrowHelper.ThrowCountArgumentOutOfRange_ArgumentOutOfRange_Count(); 287ThrowHelper.ThrowStartIndexArgumentOutOfRange_ArgumentOutOfRange_IndexMustBeLess(); 293ThrowHelper.ThrowCountArgumentOutOfRange_ArgumentOutOfRange_Count(); 302ThrowHelper.ThrowStartIndexArgumentOutOfRange_ArgumentOutOfRange_IndexMustBeLess(); 308ThrowHelper.ThrowCountArgumentOutOfRange_ArgumentOutOfRange_Count(); 341ThrowHelper.ThrowIndexArgumentOutOfRange_NeedNonNegNumException(); 343ThrowHelper.ThrowLengthArgumentOutOfRange_ArgumentOutOfRange_NeedNonNegNum(); 345ThrowHelper.ThrowArgumentException(ExceptionResource.Argument_InvalidOffLen); 384ThrowHelper.ThrowIndexArgumentOutOfRange_NeedNonNegNumException(); 386ThrowHelper.ThrowLengthArgumentOutOfRange_ArgumentOutOfRange_NeedNonNegNum(); 388ThrowHelper.ThrowArgumentException(ExceptionResource.Argument_InvalidOffLen); 401ThrowHelper.ThrowArgumentNullException(ExceptionArgument.comparison); 670ThrowHelper.ThrowArgumentOutOfRangeException();
src\Dependencies\Collections\SegmentedDictionary`2.cs (76)
85ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.capacity); 126ThrowHelper.ThrowArgumentNullException(ExceptionArgument.dictionary); 142ThrowHelper.ThrowArgumentNullException(ExceptionArgument.collection); 252ThrowHelper.ThrowKeyNotFoundException(key); 360ThrowHelper.ThrowArgumentNullException(ExceptionArgument.array); 365ThrowHelper.ThrowIndexArgumentOutOfRange_NeedNonNegNumException(); 370ThrowHelper.ThrowArgumentException(ExceptionResource.Arg_ArrayPlusOffTooSmall); 400ThrowHelper.ThrowArgumentNullException(ExceptionArgument.key); 480ThrowHelper.ThrowInvalidOperationException_ConcurrentOperationsNotSupported(); 509ThrowHelper.ThrowArgumentNullException(ExceptionArgument.key); 553ThrowHelper.ThrowAddingDuplicateWithKeyArgumentException(key); 566ThrowHelper.ThrowInvalidOperationException_ConcurrentOperationsNotSupported(); 592ThrowHelper.ThrowAddingDuplicateWithKeyArgumentException(key); 605ThrowHelper.ThrowInvalidOperationException_ConcurrentOperationsNotSupported(); 700ThrowHelper.ThrowArgumentNullException(ExceptionArgument.key); 762ThrowHelper.ThrowInvalidOperationException_ConcurrentOperationsNotSupported(); 777ThrowHelper.ThrowArgumentNullException(ExceptionArgument.key); 841ThrowHelper.ThrowInvalidOperationException_ConcurrentOperationsNotSupported(); 877ThrowHelper.ThrowArgumentNullException(ExceptionArgument.array); 882ThrowHelper.ThrowArgumentException(ExceptionResource.Arg_RankMultiDimNotSupported); 887ThrowHelper.ThrowArgumentException(ExceptionResource.Arg_NonZeroLowerBound); 892ThrowHelper.ThrowIndexArgumentOutOfRange_NeedNonNegNumException(); 897ThrowHelper.ThrowArgumentException(ExceptionResource.Arg_ArrayPlusOffTooSmall); 920ThrowHelper.ThrowArgumentException_Argument_IncompatibleArrayType(); 937ThrowHelper.ThrowArgumentException_Argument_IncompatibleArrayType(); 952ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.capacity); 999ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.capacity); 1070ThrowHelper.ThrowArgumentNullException(ExceptionArgument.key); 1072ThrowHelper.IfNullAndNullsAreIllegalThenThrow<TValue>(value, ExceptionArgument.value); 1083ThrowHelper.ThrowWrongValueTypeArgumentException(value, typeof(TValue)); 1088ThrowHelper.ThrowWrongKeyTypeArgumentException(key, typeof(TKey)); 1097ThrowHelper.ThrowArgumentNullException(ExceptionArgument.key); 1106ThrowHelper.ThrowArgumentNullException(ExceptionArgument.key); 1108ThrowHelper.IfNullAndNullsAreIllegalThenThrow<TValue>(value, ExceptionArgument.value); 1120ThrowHelper.ThrowWrongValueTypeArgumentException(value, typeof(TValue)); 1125ThrowHelper.ThrowWrongKeyTypeArgumentException(key, typeof(TKey)); 1194ThrowHelper.ThrowInvalidOperationException_InvalidOperation_EnumFailedVersion(); 1227ThrowHelper.ThrowInvalidOperationException_InvalidOperation_EnumOpCantHappen(); 1243ThrowHelper.ThrowInvalidOperationException_InvalidOperation_EnumFailedVersion(); 1256ThrowHelper.ThrowInvalidOperationException_InvalidOperation_EnumOpCantHappen(); 1269ThrowHelper.ThrowInvalidOperationException_InvalidOperation_EnumOpCantHappen(); 1282ThrowHelper.ThrowInvalidOperationException_InvalidOperation_EnumOpCantHappen(); 1302ThrowHelper.ThrowArgumentNullException(ExceptionArgument.dictionary); 1315ThrowHelper.ThrowArgumentNullException(ExceptionArgument.array); 1320ThrowHelper.ThrowIndexArgumentOutOfRange_NeedNonNegNumException(); 1325ThrowHelper.ThrowArgumentException(ExceptionResource.Arg_ArrayPlusOffTooSmall); 1342=> ThrowHelper.ThrowNotSupportedException(ExceptionResource.NotSupported_KeyCollectionSet); 1345=> ThrowHelper.ThrowNotSupportedException(ExceptionResource.NotSupported_KeyCollectionSet); 1352ThrowHelper.ThrowNotSupportedException(ExceptionResource.NotSupported_KeyCollectionSet); 1372ThrowHelper.ThrowArgumentNullException(ExceptionArgument.array); 1377ThrowHelper.ThrowArgumentException(ExceptionResource.Arg_RankMultiDimNotSupported); 1382ThrowHelper.ThrowArgumentException(ExceptionResource.Arg_NonZeroLowerBound); 1387ThrowHelper.ThrowIndexArgumentOutOfRange_NeedNonNegNumException(); 1392ThrowHelper.ThrowArgumentException(ExceptionResource.Arg_ArrayPlusOffTooSmall); 1404ThrowHelper.ThrowArgumentException_Argument_IncompatibleArrayType(); 1419ThrowHelper.ThrowArgumentException_Argument_IncompatibleArrayType(); 1451ThrowHelper.ThrowInvalidOperationException_InvalidOperation_EnumFailedVersion(); 1478ThrowHelper.ThrowInvalidOperationException_InvalidOperation_EnumOpCantHappen(); 1489ThrowHelper.ThrowInvalidOperationException_InvalidOperation_EnumFailedVersion(); 1510ThrowHelper.ThrowArgumentNullException(ExceptionArgument.dictionary); 1523ThrowHelper.ThrowArgumentNullException(ExceptionArgument.array); 1528ThrowHelper.ThrowIndexArgumentOutOfRange_NeedNonNegNumException(); 1533ThrowHelper.ThrowArgumentException(ExceptionResource.Arg_ArrayPlusOffTooSmall); 1550=> ThrowHelper.ThrowNotSupportedException(ExceptionResource.NotSupported_ValueCollectionSet); 1554ThrowHelper.ThrowNotSupportedException(ExceptionResource.NotSupported_ValueCollectionSet); 1559=> ThrowHelper.ThrowNotSupportedException(ExceptionResource.NotSupported_ValueCollectionSet); 1580ThrowHelper.ThrowArgumentNullException(ExceptionArgument.array); 1585ThrowHelper.ThrowArgumentException(ExceptionResource.Arg_RankMultiDimNotSupported); 1590ThrowHelper.ThrowArgumentException(ExceptionResource.Arg_NonZeroLowerBound); 1595ThrowHelper.ThrowIndexArgumentOutOfRange_NeedNonNegNumException(); 1600ThrowHelper.ThrowArgumentException(ExceptionResource.Arg_ArrayPlusOffTooSmall); 1612ThrowHelper.ThrowArgumentException_Argument_IncompatibleArrayType(); 1627ThrowHelper.ThrowArgumentException_Argument_IncompatibleArrayType(); 1659ThrowHelper.ThrowInvalidOperationException_InvalidOperation_EnumFailedVersion(); 1685ThrowHelper.ThrowInvalidOperationException_InvalidOperation_EnumOpCantHappen(); 1696ThrowHelper.ThrowInvalidOperationException_InvalidOperation_EnumFailedVersion();
src\Dependencies\Collections\SegmentedHashSet`1.cs (24)
107ThrowHelper.ThrowArgumentNullException(ExceptionArgument.collection); 140ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.capacity); 250ThrowHelper.ThrowInvalidOperationException_ConcurrentOperationsNotSupported(); 272ThrowHelper.ThrowInvalidOperationException_ConcurrentOperationsNotSupported(); 347ThrowHelper.ThrowInvalidOperationException_ConcurrentOperationsNotSupported(); 418ThrowHelper.ThrowArgumentNullException(ExceptionArgument.other); 433ThrowHelper.ThrowArgumentNullException(ExceptionArgument.other); 470ThrowHelper.ThrowArgumentNullException(ExceptionArgument.other); 499ThrowHelper.ThrowArgumentNullException(ExceptionArgument.other); 538ThrowHelper.ThrowArgumentNullException(ExceptionArgument.other); 574ThrowHelper.ThrowArgumentNullException(ExceptionArgument.other); 622ThrowHelper.ThrowArgumentNullException(ExceptionArgument.other); 667ThrowHelper.ThrowArgumentNullException(ExceptionArgument.other); 710ThrowHelper.ThrowArgumentNullException(ExceptionArgument.other); 742ThrowHelper.ThrowArgumentNullException(ExceptionArgument.other); 791ThrowHelper.ThrowArgumentNullException(ExceptionArgument.array); 816ThrowHelper.ThrowArgumentException(ExceptionResource.Arg_ArrayPlusOffTooSmall); 836ThrowHelper.ThrowArgumentNullException(ExceptionArgument.match); 876ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.capacity); 1055ThrowHelper.ThrowInvalidOperationException_ConcurrentOperationsNotSupported(); 1079ThrowHelper.ThrowInvalidOperationException_ConcurrentOperationsNotSupported(); 1405ThrowHelper.ThrowInvalidOperationException_InvalidOperation_EnumFailedVersion(); 1435ThrowHelper.ThrowInvalidOperationException_InvalidOperation_EnumOpCantHappen(); 1446ThrowHelper.ThrowInvalidOperationException_InvalidOperation_EnumFailedVersion();
src\Dependencies\Collections\SegmentedList`1.cs (68)
61ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.capacity, ExceptionResource.ArgumentOutOfRange_NeedNonNegNum); 76ThrowHelper.ThrowArgumentNullException(ExceptionArgument.collection); 131ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.value, ExceptionResource.ArgumentOutOfRange_SmallCapacity); 202ThrowHelper.ThrowArgumentOutOfRange_IndexMustBeLessException(); 211ThrowHelper.ThrowArgumentOutOfRange_IndexMustBeLessException(); 230ThrowHelper.IfNullAndNullsAreIllegalThenThrow<T>(value, ExceptionArgument.value); 238ThrowHelper.ThrowWrongValueTypeArgumentException(value, typeof(T)); 277ThrowHelper.IfNullAndNullsAreIllegalThenThrow<T>(item, ExceptionArgument.item); 285ThrowHelper.ThrowWrongValueTypeArgumentException(item, typeof(T)); 299ThrowHelper.ThrowArgumentNullException(ExceptionArgument.collection); 367ThrowHelper.ThrowIndexArgumentOutOfRange_NeedNonNegNumException(); 369ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.count, ExceptionResource.ArgumentOutOfRange_NeedNonNegNum); 371ThrowHelper.ThrowArgumentException(ExceptionResource.Argument_InvalidOffLen); 433ThrowHelper.ThrowArgumentNullException(ExceptionArgument.converter); 456ThrowHelper.ThrowArgumentException(ExceptionResource.Arg_RankMultiDimNotSupported); 466ThrowHelper.ThrowArgumentException_Argument_IncompatibleArrayType(); 478ThrowHelper.ThrowArgumentException(ExceptionResource.Argument_InvalidOffLen); 502ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.capacity, ExceptionResource.ArgumentOutOfRange_NeedNonNegNum); 578ThrowHelper.ThrowArgumentNullException(ExceptionArgument.match); 595ThrowHelper.ThrowArgumentNullException(ExceptionArgument.match); 619ThrowHelper.ThrowStartIndexArgumentOutOfRange_ArgumentOutOfRange_IndexMustBeLessOrEqual(); 624ThrowHelper.ThrowCountArgumentOutOfRange_ArgumentOutOfRange_Count(); 629ThrowHelper.ThrowArgumentNullException(ExceptionArgument.match); 645ThrowHelper.ThrowArgumentNullException(ExceptionArgument.match); 668ThrowHelper.ThrowArgumentNullException(ExceptionArgument.match); 676ThrowHelper.ThrowStartIndexArgumentOutOfRange_ArgumentOutOfRange_IndexMustBeLess(); 684ThrowHelper.ThrowStartIndexArgumentOutOfRange_ArgumentOutOfRange_IndexMustBeLess(); 691ThrowHelper.ThrowCountArgumentOutOfRange_ArgumentOutOfRange_Count(); 709ThrowHelper.ThrowArgumentNullException(ExceptionArgument.action); 724ThrowHelper.ThrowInvalidOperationException_InvalidOperation_EnumFailedVersion(); 749ThrowHelper.ThrowIndexArgumentOutOfRange_NeedNonNegNumException(); 754ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.count, ExceptionResource.ArgumentOutOfRange_NeedNonNegNum); 759ThrowHelper.ThrowArgumentException(ExceptionResource.Argument_InvalidOffLen); 814ThrowHelper.ThrowArgumentOutOfRange_IndexMustBeLessOrEqualException(); 830ThrowHelper.ThrowArgumentOutOfRange_IndexMustBeLessOrEqualException(); 833ThrowHelper.ThrowCountArgumentOutOfRange_ArgumentOutOfRange_Count(); 841ThrowHelper.ThrowArgumentOutOfRange_IndexMustBeLessOrEqualException(); 844ThrowHelper.ThrowCountArgumentOutOfRange_ArgumentOutOfRange_Count(); 858ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.index, ExceptionResource.ArgumentOutOfRange_ListInsert); 873ThrowHelper.IfNullAndNullsAreIllegalThenThrow<T>(item, ExceptionArgument.item); 881ThrowHelper.ThrowWrongValueTypeArgumentException(item, typeof(T)); 894ThrowHelper.ThrowArgumentNullException(ExceptionArgument.collection); 899ThrowHelper.ThrowArgumentOutOfRange_IndexMustBeLessOrEqualException(); 985ThrowHelper.ThrowArgumentOutOfRange_IndexMustBeLessException(); 1008ThrowHelper.ThrowIndexArgumentOutOfRange_NeedNonNegNumException(); 1013ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.count, ExceptionResource.ArgumentOutOfRange_NeedNonNegNum); 1018ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.index, ExceptionResource.ArgumentOutOfRange_BiggerThanCollection); 1023ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.count, ExceptionResource.ArgumentOutOfRange_BiggerThanCollection); 1039ThrowHelper.ThrowIndexArgumentOutOfRange_NeedNonNegNumException(); 1044ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.count, ExceptionResource.ArgumentOutOfRange_NeedNonNegNum); 1049ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.index, ExceptionResource.ArgumentOutOfRange_BiggerThanCollection); 1054ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.count, ExceptionResource.ArgumentOutOfRange_BiggerThanCollection); 1088ThrowHelper.ThrowArgumentNullException(ExceptionArgument.match); 1132ThrowHelper.ThrowArgumentOutOfRange_IndexMustBeLessException(); 1153ThrowHelper.ThrowIndexArgumentOutOfRange_NeedNonNegNumException(); 1158ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.count, ExceptionResource.ArgumentOutOfRange_NeedNonNegNum); 1162ThrowHelper.ThrowArgumentException(ExceptionResource.Argument_InvalidOffLen); 1195ThrowHelper.ThrowIndexArgumentOutOfRange_NeedNonNegNumException(); 1200ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.count, ExceptionResource.ArgumentOutOfRange_NeedNonNegNum); 1204ThrowHelper.ThrowArgumentException(ExceptionResource.Argument_InvalidOffLen); 1235ThrowHelper.ThrowIndexArgumentOutOfRange_NeedNonNegNumException(); 1240ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.count, ExceptionResource.ArgumentOutOfRange_NeedNonNegNum); 1244ThrowHelper.ThrowArgumentException(ExceptionResource.Argument_InvalidOffLen); 1257ThrowHelper.ThrowArgumentNullException(ExceptionArgument.comparison); 1304ThrowHelper.ThrowArgumentNullException(ExceptionArgument.match); 1353ThrowHelper.ThrowInvalidOperationException_InvalidOperation_EnumFailedVersion(); 1369ThrowHelper.ThrowInvalidOperationException_InvalidOperation_EnumOpCantHappen(); 1379ThrowHelper.ThrowInvalidOperationException_InvalidOperation_EnumFailedVersion();