176 references to SR
System.Collections (176)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\HashHelpers.cs (1)
58throw new ArgumentException(SR.Arg_HTCapacityOverflow);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\ObjectModel\CollectionHelpers.cs (5)
16throw new ArgumentException(SR.Arg_RankMultiDimNotSupported, nameof(array)); 21throw new ArgumentException(SR.Arg_NonZeroLowerBound, nameof(array)); 36throw new ArgumentException(SR.Arg_ArrayPlusOffTooSmall); 58throw new ArgumentException(SR.Argument_IncompatibleArrayType, nameof(array)); 70throw new ArgumentException(SR.Argument_IncompatibleArrayType, nameof(array));
System\Collections\Generic\LinkedList.cs (15)
202throw new ArgumentOutOfRangeException(nameof(index), index, SR.ArgumentOutOfRange_BiggerThanCollection); 207throw new ArgumentException(SR.Arg_InsufficientSpace); 314if (head == null) { throw new InvalidOperationException(SR.LinkedListEmpty); } 320if (head == null) { throw new InvalidOperationException(SR.LinkedListEmpty); } 361throw new SerializationException(SR.Serialization_MissingValues); 426throw new InvalidOperationException(SR.LinkedListNodeIsAttached); 436throw new InvalidOperationException(SR.ExternalLinkedListNode); 453throw new ArgumentException(SR.Arg_RankMultiDimNotSupported, nameof(array)); 458throw new ArgumentException(SR.Arg_NonZeroLowerBound, nameof(array)); 465throw new ArgumentException(SR.Arg_InsufficientSpace); 480throw new ArgumentException(SR.Argument_IncompatibleArrayType, nameof(array)); 496throw new ArgumentException(SR.Argument_IncompatibleArrayType, nameof(array)); 528throw new InvalidOperationException(SR.InvalidOperation_EnumOpCantHappen); 539throw new InvalidOperationException(SR.InvalidOperation_EnumFailedVersion); 562throw new InvalidOperationException(SR.InvalidOperation_EnumFailedVersion);
System\Collections\Generic\OrderedDictionary.cs (32)
294throw new ArgumentException(SR.Format(SR.Arg_WrongType, value, typeof(KeyValuePair<TKey, TValue>)), nameof(value)); 325throw new ArgumentException(SR.Format(SR.Arg_WrongType, key, typeof(TKey)), nameof(key)); 333throw new ArgumentException(SR.Format(SR.Arg_WrongType, value, typeof(TValue)), nameof(value)); 1210throw new ArgumentException(SR.Arg_ArrayPlusOffTooSmall); 1243throw new ArgumentException(SR.Format(SR.Arg_WrongType, key, typeof(TKey)), nameof(key)); 1251throw new ArgumentException(SR.Format(SR.Arg_WrongType, value, typeof(TValue)), nameof(value)); 1286throw new ArgumentException(SR.Arg_RankMultiDimNotSupported, nameof(array)); 1291throw new ArgumentException(SR.Arg_NonZeroLowerBound, nameof(array)); 1298throw new ArgumentException(SR.Arg_ArrayPlusOffTooSmall); 1311throw new ArgumentException(SR.Argument_IncompatibleArrayType, nameof(array)); 1321throw new ArgumentException(SR.Argument_IncompatibleArrayType, nameof(array)); 1331throw new ArgumentException(SR.Format(SR.Arg_WrongType, value, typeof(KeyValuePair<TKey, TValue>)), nameof(value)); 1360throw new ArgumentException(SR.Format(SR.Arg_WrongType, value, typeof(KeyValuePair<TKey, TValue>)), nameof(value)); 1511throw new ArgumentException(SR.Arg_ArrayPlusOffTooSmall, nameof(array)); 1529throw new ArgumentException(SR.Arg_RankMultiDimNotSupported, nameof(array)); 1534throw new ArgumentException(SR.Arg_NonZeroLowerBound, nameof(array)); 1541throw new ArgumentException(SR.Arg_ArrayPlusOffTooSmall); 1554throw new ArgumentException(SR.Argument_IncompatibleArrayType, nameof(array)); 1564throw new ArgumentException(SR.Argument_IncompatibleArrayType, nameof(array)); 1700throw new ArgumentException(SR.Arg_ArrayPlusOffTooSmall, nameof(array)); 1838throw new ArgumentException(SR.Arg_RankMultiDimNotSupported, nameof(array)); 1843throw new ArgumentException(SR.Arg_NonZeroLowerBound, nameof(array)); 1850throw new ArgumentException(SR.Arg_ArrayPlusOffTooSmall); 1863throw new ArgumentException(SR.Argument_IncompatibleArrayType, nameof(array)); 1873throw new ArgumentException(SR.Argument_IncompatibleArrayType, nameof(array));
System\Collections\Generic\PriorityQueue.cs (8)
228throw new InvalidOperationException(SR.InvalidOperation_EmptyQueue); 243throw new InvalidOperationException(SR.InvalidOperation_EmptyQueue); 267throw new InvalidOperationException(SR.InvalidOperation_EmptyQueue); 955throw new ArgumentException(SR.Arg_RankMultiDimNotSupported, nameof(array)); 960throw new ArgumentException(SR.Arg_NonZeroLowerBound, nameof(array)); 965throw new ArgumentOutOfRangeException(nameof(index), index, SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 970throw new ArgumentException(SR.Argument_InvalidOffLen); 979throw new ArgumentException(SR.Argument_IncompatibleArrayType, nameof(array));
System\Collections\Generic\SortedDictionary.cs (34)
115throw new KeyNotFoundException(SR.Format(SR.Arg_KeyNotFoundWithKey, key.ToString())); 328throw new ArgumentException(SR.Format(SR.Arg_WrongType, value, typeof(TValue)), nameof(value)); 333throw new ArgumentException(SR.Format(SR.Arg_WrongType, key, typeof(TKey)), nameof(key)); 357throw new ArgumentException(SR.Format(SR.Arg_WrongType, value, typeof(TValue)), nameof(value)); 362throw new ArgumentException(SR.Format(SR.Arg_WrongType, key, typeof(TKey)), nameof(key)); 461throw new InvalidOperationException(SR.InvalidOperation_EnumOpCantHappen); 479throw new InvalidOperationException(SR.InvalidOperation_EnumOpCantHappen); 492throw new InvalidOperationException(SR.InvalidOperation_EnumOpCantHappen); 505throw new InvalidOperationException(SR.InvalidOperation_EnumOpCantHappen); 542throw new ArgumentException(SR.Arg_ArrayPlusOffTooSmall); 554throw new ArgumentException(SR.Arg_RankMultiDimNotSupported, nameof(array)); 559throw new ArgumentException(SR.Arg_NonZeroLowerBound, nameof(array)); 566throw new ArgumentException(SR.Arg_ArrayPlusOffTooSmall); 582throw new ArgumentException(SR.Argument_IncompatibleArrayType, nameof(array)); 599throw new NotSupportedException(SR.NotSupported_KeyCollectionSet); 604throw new NotSupportedException(SR.NotSupported_KeyCollectionSet); 614throw new NotSupportedException(SR.NotSupported_KeyCollectionSet); 660throw new InvalidOperationException(SR.InvalidOperation_EnumOpCantHappen); 703throw new ArgumentException(SR.Arg_ArrayPlusOffTooSmall); 715throw new ArgumentException(SR.Arg_RankMultiDimNotSupported, nameof(array)); 720throw new ArgumentException(SR.Arg_NonZeroLowerBound, nameof(array)); 727throw new ArgumentException(SR.Arg_ArrayPlusOffTooSmall); 743throw new ArgumentException(SR.Argument_IncompatibleArrayType, nameof(array)); 760throw new NotSupportedException(SR.NotSupported_ValueCollectionSet); 765throw new NotSupportedException(SR.NotSupported_ValueCollectionSet); 775throw new NotSupportedException(SR.NotSupported_ValueCollectionSet); 821throw new InvalidOperationException(SR.InvalidOperation_EnumOpCantHappen); 896throw new ArgumentException(SR.Format(SR.Argument_AddingDuplicate, item));
System\Collections\Generic\SortedList.cs (53)
167throw new ArgumentException(SR.Format(SR.Argument_AddingDuplicate, keys[i])); 185throw new ArgumentException(SR.Format(SR.Argument_AddingDuplicate, key), nameof(key)); 233throw new ArgumentOutOfRangeException(nameof(value), value, SR.ArgumentOutOfRange_SmallCapacity); 273throw new ArgumentException(SR.Format(SR.Arg_WrongType, key, typeof(TKey)), nameof(key)); 276throw new ArgumentException(SR.Format(SR.Arg_WrongType, value, typeof(TValue)), nameof(value)); 437throw new ArgumentOutOfRangeException(nameof(arrayIndex), arrayIndex, SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 442throw new ArgumentException(SR.Arg_ArrayPlusOffTooSmall); 458throw new ArgumentException(SR.Arg_RankMultiDimNotSupported, nameof(array)); 463throw new ArgumentException(SR.Arg_NonZeroLowerBound, nameof(array)); 468throw new ArgumentOutOfRangeException(nameof(index), index, SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 473throw new ArgumentException(SR.Arg_ArrayPlusOffTooSmall); 488throw new ArgumentException(SR.Argument_IncompatibleArrayType, nameof(array)); 500throw new ArgumentException(SR.Argument_IncompatibleArrayType, nameof(array)); 527throw new ArgumentOutOfRangeException(nameof(index), index, SR.ArgumentOutOfRange_IndexMustBeLess); 540throw new ArgumentOutOfRangeException(nameof(index), index, SR.ArgumentOutOfRange_IndexMustBeLess); 564throw new ArgumentOutOfRangeException(nameof(index), index, SR.ArgumentOutOfRange_IndexMustBeLess); 578throw new KeyNotFoundException(SR.Format(SR.Arg_KeyNotFoundWithKey, key.ToString())); 627throw new ArgumentException(SR.Format(SR.Arg_WrongType, value, typeof(TValue)), nameof(value)); 689throw new ArgumentOutOfRangeException(nameof(index), index, SR.ArgumentOutOfRange_IndexMustBeLess); 785throw new InvalidOperationException(SR.InvalidOperation_EnumOpCantHappen); 794if (_version != _sortedList.version) throw new InvalidOperationException(SR.InvalidOperation_EnumFailedVersion); 816throw new InvalidOperationException(SR.InvalidOperation_EnumOpCantHappen); 831throw new InvalidOperationException(SR.InvalidOperation_EnumOpCantHappen); 851throw new InvalidOperationException(SR.InvalidOperation_EnumOpCantHappen); 862throw new InvalidOperationException(SR.InvalidOperation_EnumFailedVersion); 894throw new InvalidOperationException(SR.InvalidOperation_EnumFailedVersion); 917throw new InvalidOperationException(SR.InvalidOperation_EnumOpCantHappen); 928throw new InvalidOperationException(SR.InvalidOperation_EnumFailedVersion); 958throw new InvalidOperationException(SR.InvalidOperation_EnumFailedVersion); 981throw new InvalidOperationException(SR.InvalidOperation_EnumOpCantHappen); 992throw new InvalidOperationException(SR.InvalidOperation_EnumFailedVersion); 1033throw new NotSupportedException(SR.NotSupported_SortedListNestedWrite); 1038throw new NotSupportedException(SR.NotSupported_SortedListNestedWrite); 1055throw new ArgumentException(SR.Arg_RankMultiDimNotSupported, nameof(array)); 1064throw new ArgumentException(SR.Argument_IncompatibleArrayType, nameof(array)); 1070throw new NotSupportedException(SR.NotSupported_SortedListNestedWrite); 1081throw new NotSupportedException(SR.NotSupported_KeyCollectionSet); 1103throw new NotSupportedException(SR.NotSupported_SortedListNestedWrite); 1109throw new NotSupportedException(SR.NotSupported_SortedListNestedWrite); 1147throw new NotSupportedException(SR.NotSupported_SortedListNestedWrite); 1152throw new NotSupportedException(SR.NotSupported_SortedListNestedWrite); 1169throw new ArgumentException(SR.Arg_RankMultiDimNotSupported, nameof(array)); 1178throw new ArgumentException(SR.Argument_IncompatibleArrayType, nameof(array)); 1184throw new NotSupportedException(SR.NotSupported_SortedListNestedWrite); 1195throw new NotSupportedException(SR.NotSupported_SortedListNestedWrite); 1212throw new NotSupportedException(SR.NotSupported_SortedListNestedWrite); 1218throw new NotSupportedException(SR.NotSupported_SortedListNestedWrite);
System\Collections\Generic\SortedSet.cs (13)
523throw new ArgumentException(SR.Arg_ArrayPlusOffTooSmall); 546throw new ArgumentException(SR.Arg_RankMultiDimNotSupported, nameof(array)); 551throw new ArgumentException(SR.Arg_NonZeroLowerBound, nameof(array)); 558throw new ArgumentException(SR.Arg_ArrayPlusOffTooSmall); 571throw new ArgumentException(SR.Argument_IncompatibleArrayType, nameof(array)); 584throw new ArgumentException(SR.Argument_IncompatibleArrayType, nameof(array)); 1512throw new ArgumentException(SR.SortedSet_LowerValueGreaterThanUpperValue, nameof(lowerValue)); 1557throw new SerializationException(SR.Serialization_InvalidOnDeser); 1569throw new SerializationException(SR.Serialization_MissingValues); 1581throw new SerializationException(SR.Serialization_MismatchedCount); 1900throw new InvalidOperationException(SR.InvalidOperation_EnumFailedVersion); 1953throw new InvalidOperationException(SR.InvalidOperation_EnumOpCantHappen); 1966throw new InvalidOperationException(SR.InvalidOperation_EnumFailedVersion);
System\Collections\Generic\Stack.cs (9)
103throw new ArgumentOutOfRangeException(nameof(arrayIndex), arrayIndex, SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 108throw new ArgumentException(SR.Argument_InvalidOffLen); 126throw new ArgumentException(SR.Arg_RankMultiDimNotSupported, nameof(array)); 131throw new ArgumentException(SR.Arg_NonZeroLowerBound, nameof(array)); 136throw new ArgumentOutOfRangeException(nameof(arrayIndex), arrayIndex, SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 141throw new ArgumentException(SR.Argument_InvalidOffLen); 151throw new ArgumentException(SR.Argument_IncompatibleArrayType, nameof(array)); 349throw new InvalidOperationException(SR.InvalidOperation_EmptyStack); 406private static void ThrowInvalidVersion() => throw new InvalidOperationException(SR.InvalidOperation_EnumFailedVersion);
System\Collections\ThrowHelper.cs (6)
15throw new KeyNotFoundException(SR.Format(SR.Arg_KeyNotFoundWithKey, key)); 20throw new ArgumentException(SR.Format(SR.Argument_AddingDuplicate, key), nameof(key)); 25throw new InvalidOperationException(SR.InvalidOperation_ConcurrentOperationsNotSupported); 35throw new InvalidOperationException(SR.InvalidOperation_EnumFailedVersion);