14 references to Arg_WrongType
System.Collections (14)
System\Collections\Generic\OrderedDictionary.cs (7)
294
throw new ArgumentException(SR.Format(SR.
Arg_WrongType
, value, typeof(KeyValuePair<TKey, TValue>)), nameof(value));
325
throw new ArgumentException(SR.Format(SR.
Arg_WrongType
, key, typeof(TKey)), nameof(key));
333
throw new ArgumentException(SR.Format(SR.
Arg_WrongType
, value, typeof(TValue)), nameof(value));
1243
throw new ArgumentException(SR.Format(SR.
Arg_WrongType
, key, typeof(TKey)), nameof(key));
1251
throw new ArgumentException(SR.Format(SR.
Arg_WrongType
, value, typeof(TValue)), nameof(value));
1331
throw new ArgumentException(SR.Format(SR.
Arg_WrongType
, value, typeof(KeyValuePair<TKey, TValue>)), nameof(value));
1360
throw new ArgumentException(SR.Format(SR.
Arg_WrongType
, value, typeof(KeyValuePair<TKey, TValue>)), nameof(value));
System\Collections\Generic\SortedDictionary.cs (4)
328
throw new ArgumentException(SR.Format(SR.
Arg_WrongType
, value, typeof(TValue)), nameof(value));
333
throw new ArgumentException(SR.Format(SR.
Arg_WrongType
, key, typeof(TKey)), nameof(key));
357
throw new ArgumentException(SR.Format(SR.
Arg_WrongType
, value, typeof(TValue)), nameof(value));
362
throw new ArgumentException(SR.Format(SR.
Arg_WrongType
, key, typeof(TKey)), nameof(key));
System\Collections\Generic\SortedList.cs (3)
273
throw new ArgumentException(SR.Format(SR.
Arg_WrongType
, key, typeof(TKey)), nameof(key));
276
throw new ArgumentException(SR.Format(SR.
Arg_WrongType
, value, typeof(TValue)), nameof(value));
627
throw new ArgumentException(SR.Format(SR.
Arg_WrongType
, value, typeof(TValue)), nameof(value));