53 references to SR
Microsoft.CodeAnalysis.Workspaces (53)
src\Dependencies\Collections\ImmutableSegmentedList`1.cs (2)
473throw new ArgumentException(SR.CannotFindOldValue, nameof(oldValue)); 487throw new ArgumentException(SR.CannotFindOldValue, nameof(oldValue));
src\Dependencies\Collections\Internal\HashHelpers.cs (1)
63throw new ArgumentException(SR.Arg_HTCapacityOverflow);
src\Dependencies\Collections\Internal\ThrowHelper.cs (23)
76throw new ArgumentException(string.Format(SR.Arg_BogusIComparer, comparer)); 130return new ArgumentException(string.Format(SR.Argument_AddingDuplicateWithKey, key)); 191throw new ArgumentException(SR.Argument_IncompatibleArrayType); 197throw new InvalidOperationException(SR.InvalidOperation_EnumFailedVersion); 203throw new InvalidOperationException(SR.InvalidOperation_EnumOpCantHappen); 209throw new InvalidOperationException(SR.InvalidOperation_ConcurrentOperationsNotSupported); 219return new ArgumentException(string.Format(SR.Arg_WrongType, key, targetType), nameof(key)); 224return new ArgumentException(string.Format(SR.Arg_WrongType, value, targetType), nameof(value)); 229return new KeyNotFoundException(string.Format(SR.Arg_KeyNotFoundWithKey, key)); 301return SR.ArgumentOutOfRange_IndexMustBeLessOrEqual; 303return SR.ArgumentOutOfRange_IndexMustBeLess; 305return SR.ArgumentOutOfRange_Count; 307return SR.Arg_ArrayPlusOffTooSmall; 309return SR.Arg_RankMultiDimNotSupported; 311return SR.Arg_NonZeroLowerBound; 313return SR.ArgumentOutOfRange_ListInsert; 315return SR.ArgumentOutOfRange_NeedNonNegNum; 317return SR.ArgumentOutOfRange_SmallCapacity; 319return SR.Argument_InvalidOffLen; 321return SR.ArgumentOutOfRange_BiggerThanCollection; 323return SR.NotSupported_KeyCollectionSet; 325return SR.NotSupported_ValueCollectionSet; 327return SR.InvalidOperation_IComparerFailed;
src\Dependencies\Collections\SegmentedArray.cs (15)
40throw new ArgumentException(SR.Arg_LongerThanSrcArray, nameof(sourceArray)); 42throw new ArgumentException(SR.Arg_LongerThanDestArray, nameof(destinationArray)); 60throw new ArgumentException(SR.Arg_LongerThanSrcArray, nameof(sourceArray)); 62throw new ArgumentException(SR.Arg_LongerThanDestArray, nameof(destinationArray)); 80throw new ArgumentOutOfRangeException(nameof(length), SR.ArgumentOutOfRange_NeedNonNegNum); 82throw new ArgumentOutOfRangeException(nameof(sourceIndex), SR.ArgumentOutOfRange_ArrayLB); 84throw new ArgumentOutOfRangeException(nameof(destinationIndex), SR.ArgumentOutOfRange_ArrayLB); 86throw new ArgumentException(SR.Arg_LongerThanSrcArray, nameof(sourceArray)); 88throw new ArgumentException(SR.Arg_LongerThanDestArray, nameof(destinationArray)); 142throw new RankException(SR.Rank_MustMatch); 145throw new ArgumentOutOfRangeException(nameof(length), SR.ArgumentOutOfRange_NeedNonNegNum); 147throw new ArgumentOutOfRangeException(nameof(sourceIndex), SR.ArgumentOutOfRange_ArrayLB); 151throw new ArgumentOutOfRangeException(nameof(destinationIndex), SR.ArgumentOutOfRange_ArrayLB); 155throw new ArgumentException(SR.Arg_LongerThanSrcArray, nameof(sourceArray)); 157throw new ArgumentException(SR.Arg_LongerThanDestArray, nameof(destinationArray));
src\Dependencies\Collections\SegmentedArray`1.cs (10)
191throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 196throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 212throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 269throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 274throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 279throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 284throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 289throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 294throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 313throw new ArgumentException(SR.ArgumentException_OtherNotArrayOfCorrectLength, nameof(other));
src\Dependencies\Collections\SegmentedHashSet`1.cs (2)
801throw new ArgumentOutOfRangeException(nameof(arrayIndex), arrayIndex, SR.ArgumentOutOfRange_NeedNonNegNum); 807throw new ArgumentOutOfRangeException(nameof(count), count, SR.ArgumentOutOfRange_NeedNonNegNum);