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