52 references to SR
System.Collections.Concurrent (52)
src\libraries\System.Private.CoreLib\src\System\Collections\HashHelpers.cs (1)
58
throw new ArgumentException(
SR
.Arg_HTCapacityOverflow);
System\Collections\Concurrent\BlockingCollection.cs (25)
133
throw new NotSupportedException(
SR
.ConcurrentCollection_SyncRoot_NotSupported);
184
throw new ArgumentException(
SR
.BlockingCollection_ctor_CountMoreThanCapacity);
402
throw new InvalidOperationException(
SR
.BlockingCollection_Completed);
431
(
SR
.BlockingCollection_Add_ConcurrentCompleteAdd);
453
throw new InvalidOperationException(
SR
.BlockingCollection_Completed);
478
throw new InvalidOperationException(
SR
.BlockingCollection_Add_Failed);
515
throw new InvalidOperationException(
SR
.BlockingCollection_CantTakeWhenDone);
539
throw new InvalidOperationException(
SR
.BlockingCollection_CantTakeWhenDone);
701
(
SR
.BlockingCollection_Take_CollectionModified);
994
throw new ArgumentException(
SR
.BlockingCollection_CantAddAnyWhenCompleted, nameof(collections)); //case#4
1378
throw new ArgumentException(
SR
.BlockingCollection_CantTakeAnyWhenAllDone, nameof(collections));
1574
throw new ArgumentOutOfRangeException(nameof(index), index,
SR
.BlockingCollection_CopyTo_NonNegative);
1578
throw new ArgumentException(
SR
.Collection_CopyTo_TooManyElems, nameof(index));
1582
throw new ArgumentException(
SR
.BlockingCollection_CopyTo_MultiDim, nameof(array));
1586
throw new ArgumentException(
SR
.BlockingCollection_CopyTo_IncorrectType, nameof(array));
1590
throw new ArgumentException(
SR
.BlockingCollection_CopyTo_IncorrectType, nameof(array));
1660
SR
.BlockingCollection_ValidateCollectionsArray_ZeroSize, nameof(collections));
1667
nameof(collections),
SR
.BlockingCollection_ValidateCollectionsArray_LargeSize);
1675
SR
.BlockingCollection_ValidateCollectionsArray_NullElems, nameof(collections));
1680
nameof(collections),
SR
.BlockingCollection_ValidateCollectionsArray_DispElems);
1685
SR
.BlockingCollection_CantAddAnyWhenCompleted, nameof(collections));
1702
SR
.Format(CultureInfo.InvariantCulture,
SR
.BlockingCollection_TimeoutInvalid, int.MaxValue));
1716
SR
.Format(CultureInfo.InvariantCulture,
SR
.BlockingCollection_TimeoutInvalid, int.MaxValue));
System\Collections\Concurrent\ConcurrentBag.cs (3)
297
throw new ArgumentException(
SR
.Collection_CopyTo_TooManyElems, nameof(index));
597
get { throw new NotSupportedException(
SR
.ConcurrentCollection_SyncRoot_NotSupported); }
1119
throw new InvalidOperationException(
SR
.ConcurrentBag_Enumerator_EnumerationNotStartedOrAlreadyFinished);
System\Collections\Concurrent\ConcurrentDictionary.cs (12)
169
throw new ArgumentOutOfRangeException(nameof(concurrencyLevel),
SR
.ConcurrentDictionary_ConcurrencyLevelMustBePositiveOrNegativeOne);
345
throw new ArgumentException(
SR
.ConcurrentDictionary_SourceContainsDuplicateKeys);
425
ThrowHelper.ThrowArgumentNullException(nameof(item),
SR
.ConcurrentDictionary_ItemKeyIsNull);
765
throw new ArgumentException(
SR
.ConcurrentDictionary_ArrayNotLargeEnough);
1115
throw new KeyNotFoundException(
SR
.Format(
SR
.Arg_KeyNotFoundWithKey, key.ToString()));
1574
throw new ArgumentException(
SR
.ConcurrentDictionary_KeyAlreadyExisted);
1710
throw new ArgumentException(
SR
.ConcurrentDictionary_TypeOfKeyIncorrect);
1843
throw new ArgumentException(
SR
.ConcurrentDictionary_TypeOfKeyIncorrect);
1903
throw new ArgumentException(
SR
.ConcurrentDictionary_ArrayNotLargeEnough);
1930
throw new ArgumentException(
SR
.ConcurrentDictionary_ArrayIncorrectType, nameof(array));
1953
object ICollection.SyncRoot => throw new NotSupportedException(
SR
.ConcurrentCollection_SyncRoot_NotSupported);
System\Collections\Concurrent\ConcurrentStack.cs (2)
184
throw new NotSupportedException(
SR
.ConcurrentCollection_SyncRoot_NotSupported);
402
throw new ArgumentException(
SR
.ConcurrentStack_PushPopRange_InvalidCount);
System\Collections\Concurrent\OrderablePartitioner.cs (1)
128
throw new NotSupportedException(
SR
.Partitioner_DynamicPartitionsNotSupported);
System\Collections\Concurrent\Partitioner.cs (1)
96
throw new NotSupportedException(
SR
.Partitioner_DynamicPartitionsNotSupported);
System\Collections\Concurrent\PartitionerStatic.cs (5)
948
throw new InvalidOperationException(
SR
.PartitionerStatic_CurrentCalledBeforeMoveNext);
1218
throw new InvalidOperationException(
SR
.PartitionerStatic_CurrentCalledBeforeMoveNext);
1302
throw new InvalidOperationException(
SR
.PartitionerStatic_CurrentCalledBeforeMoveNext);
1525
throw new InvalidOperationException(
SR
.PartitionerStatic_CurrentCalledBeforeMoveNext);
1582
throw new InvalidOperationException(
SR
.PartitionerStatic_CurrentCalledBeforeMoveNext);
System\ThrowHelper.cs (2)
20
internal static void ThrowValueNullException() => throw new ArgumentException(
SR
.ConcurrentDictionary_TypeOfValueIncorrect);
26
internal static void ThrowIncompatibleComparer() => throw new InvalidOperationException(
SR
.InvalidOperation_IncompatibleComparer);