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