53 references to SR
System.Collections.NonGeneric (53)
System\Collections\CollectionBase.cs (5)
74throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_IndexMustBeLess); 120throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_IndexMustBeLess); 126throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_IndexMustBeLess); 170if (index < 0) throw new ArgumentException(SR.Arg_RemoveArgNotFound); 192throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_IndexMustBeLessOrEqual);
System\Collections\Queue.cs (8)
133throw new ArgumentException(SR.Arg_RankMultiDimNotSupported, nameof(array)); 138throw new ArgumentException(SR.Argument_InvalidOffLen); 183throw new InvalidOperationException(SR.InvalidOperation_EmptyQueue); 199throw new InvalidOperationException(SR.InvalidOperation_EmptyQueue); 441if (_version != _q._version) throw new InvalidOperationException(SR.InvalidOperation_EnumFailedVersion); 464throw new InvalidOperationException(SR.InvalidOperation_EnumNotStarted); 466throw new InvalidOperationException(SR.InvalidOperation_EnumEnded); 474if (_version != _q._version) throw new InvalidOperationException(SR.InvalidOperation_EnumFailedVersion);
System\Collections\SortedList.cs (32)
179throw new ArgumentException(SR.Format(SR.Argument_AddingDuplicate_OldAndNewKeys, GetKey(i), key)); 199throw new ArgumentOutOfRangeException(nameof(value), SR.ArgumentOutOfRange_SmallCapacity); 339throw new ArgumentException(SR.Arg_RankMultiDimNotSupported, nameof(array)); 342throw new ArgumentException(SR.Arg_ArrayPlusOffTooSmall); 384throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_IndexMustBeLess); 412if (index < 0 || index >= Count) throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_IndexMustBeLess); 514if (index < 0 || index >= Count) throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_IndexMustBeLess); 542if (index < 0 || index >= Count) throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_IndexMustBeLess); 818if (_version != _sortedList.version) throw new InvalidOperationException(SR.InvalidOperation_EnumFailedVersion); 819if (_current == false) throw new InvalidOperationException(SR.InvalidOperation_EnumOpCantHappen); 826if (_version != _sortedList.version) throw new InvalidOperationException(SR.InvalidOperation_EnumFailedVersion); 845if (_version != _sortedList.version) throw new InvalidOperationException(SR.InvalidOperation_EnumFailedVersion); 846if (_current == false) throw new InvalidOperationException(SR.InvalidOperation_EnumOpCantHappen); 855if (_current == false) throw new InvalidOperationException(SR.InvalidOperation_EnumOpCantHappen); 870if (_version != _sortedList.version) throw new InvalidOperationException(SR.InvalidOperation_EnumFailedVersion); 871if (_current == false) throw new InvalidOperationException(SR.InvalidOperation_EnumOpCantHappen); 878if (_version != _sortedList.version) throw new InvalidOperationException(SR.InvalidOperation_EnumFailedVersion); 924throw new NotSupportedException(SR.NotSupported_SortedListNestedWrite); 930throw new NotSupportedException(SR.NotSupported_SortedListNestedWrite); 941throw new ArgumentException(SR.Arg_RankMultiDimNotSupported, nameof(array)); 949throw new NotSupportedException(SR.NotSupported_SortedListNestedWrite); 960throw new NotSupportedException(SR.NotSupported_KeyCollectionSet); 981throw new NotSupportedException(SR.NotSupported_SortedListNestedWrite); 986throw new NotSupportedException(SR.NotSupported_SortedListNestedWrite); 1028throw new NotSupportedException(SR.NotSupported_SortedListNestedWrite); 1033throw new NotSupportedException(SR.NotSupported_SortedListNestedWrite); 1044throw new ArgumentException(SR.Arg_RankMultiDimNotSupported, nameof(array)); 1052throw new NotSupportedException(SR.NotSupported_SortedListNestedWrite); 1063throw new NotSupportedException(SR.NotSupported_SortedListNestedWrite); 1079throw new NotSupportedException(SR.NotSupported_SortedListNestedWrite); 1084throw new NotSupportedException(SR.NotSupported_SortedListNestedWrite);
System\Collections\Stack.cs (8)
119throw new ArgumentException(SR.Arg_RankMultiDimNotSupported, nameof(array)); 122throw new ArgumentException(SR.Argument_InvalidOffLen); 155throw new InvalidOperationException(SR.InvalidOperation_EmptyStack); 165throw new InvalidOperationException(SR.InvalidOperation_EmptyStack); 341if (_version != _stack._version) throw new InvalidOperationException(SR.InvalidOperation_EnumFailedVersion); 367if (_index == -2) throw new InvalidOperationException(SR.InvalidOperation_EnumNotStarted); 368if (_index == -1) throw new InvalidOperationException(SR.InvalidOperation_EnumEnded); 375if (_version != _stack._version) throw new InvalidOperationException(SR.InvalidOperation_EnumFailedVersion);