53 references to SR
Microsoft.CodeAnalysis.Threading.Package (53)
src\Dependencies\Collections\Internal\HashHelpers.cs (1)
65throw new ArgumentException(SR.Arg_HTCapacityOverflow);
src\Dependencies\Collections\Internal\ThrowHelper.cs (23)
78throw new ArgumentException(string.Format(SR.Arg_BogusIComparer, comparer)); 132return new ArgumentException(string.Format(SR.Argument_AddingDuplicateWithKey, key)); 193throw new ArgumentException(SR.Argument_IncompatibleArrayType); 199throw new InvalidOperationException(SR.InvalidOperation_EnumFailedVersion); 205throw new InvalidOperationException(SR.InvalidOperation_EnumOpCantHappen); 211throw new InvalidOperationException(SR.InvalidOperation_ConcurrentOperationsNotSupported); 221return new ArgumentException(string.Format(SR.Arg_WrongType, key, targetType), nameof(key)); 226return new ArgumentException(string.Format(SR.Arg_WrongType, value, targetType), nameof(value)); 231return new KeyNotFoundException(string.Format(SR.Arg_KeyNotFoundWithKey, key)); 303return SR.ArgumentOutOfRange_IndexMustBeLessOrEqual; 305return SR.ArgumentOutOfRange_IndexMustBeLess; 307return SR.ArgumentOutOfRange_Count; 309return SR.Arg_ArrayPlusOffTooSmall; 311return SR.Arg_RankMultiDimNotSupported; 313return SR.Arg_NonZeroLowerBound; 315return SR.ArgumentOutOfRange_ListInsert; 317return SR.ArgumentOutOfRange_NeedNonNegNum; 319return SR.ArgumentOutOfRange_SmallCapacity; 321return SR.Argument_InvalidOffLen; 323return SR.ArgumentOutOfRange_BiggerThanCollection; 325return SR.NotSupported_KeyCollectionSet; 327return SR.NotSupported_ValueCollectionSet; 329return SR.InvalidOperation_IComparerFailed;
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (2)
475throw new ArgumentException(SR.CannotFindOldValue, nameof(oldValue)); 489throw new ArgumentException(SR.CannotFindOldValue, nameof(oldValue));
src\Dependencies\Collections\Segmented\SegmentedArray.cs (15)
42throw new ArgumentException(SR.Arg_LongerThanSrcArray, nameof(sourceArray)); 44throw new ArgumentException(SR.Arg_LongerThanDestArray, nameof(destinationArray)); 62throw new ArgumentException(SR.Arg_LongerThanSrcArray, nameof(sourceArray)); 64throw new ArgumentException(SR.Arg_LongerThanDestArray, nameof(destinationArray)); 82throw new ArgumentOutOfRangeException(nameof(length), SR.ArgumentOutOfRange_NeedNonNegNum); 84throw new ArgumentOutOfRangeException(nameof(sourceIndex), SR.ArgumentOutOfRange_ArrayLB); 86throw new ArgumentOutOfRangeException(nameof(destinationIndex), SR.ArgumentOutOfRange_ArrayLB); 88throw new ArgumentException(SR.Arg_LongerThanSrcArray, nameof(sourceArray)); 90throw new ArgumentException(SR.Arg_LongerThanDestArray, nameof(destinationArray)); 144throw new RankException(SR.Rank_MustMatch); 147throw new ArgumentOutOfRangeException(nameof(length), SR.ArgumentOutOfRange_NeedNonNegNum); 149throw new ArgumentOutOfRangeException(nameof(sourceIndex), SR.ArgumentOutOfRange_ArrayLB); 153throw new ArgumentOutOfRangeException(nameof(destinationIndex), SR.ArgumentOutOfRange_ArrayLB); 157throw new ArgumentException(SR.Arg_LongerThanSrcArray, nameof(sourceArray)); 159throw new ArgumentException(SR.Arg_LongerThanDestArray, nameof(destinationArray));
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (10)
193throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 198throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 214throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 271throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 276throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 281throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 286throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 291throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 296throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 315throw new ArgumentException(SR.ArgumentException_OtherNotArrayOfCorrectLength, nameof(other));
src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (2)
803throw new ArgumentOutOfRangeException(nameof(arrayIndex), arrayIndex, SR.ArgumentOutOfRange_NeedNonNegNum); 809throw new ArgumentOutOfRangeException(nameof(count), count, SR.ArgumentOutOfRange_NeedNonNegNum);