9 references to CannotConvertType
PresentationCore (9)
System\Windows\Media\CharacterMetricsDictionary.cs (3)
219
throw new ArgumentException(SR.Format(SR.
CannotConvertType
, typeof(SC.DictionaryEntry), elementType));
518
throw new ArgumentException(SR.Format(SR.
CannotConvertType
, key.GetType(), "int"), "key");
535
throw new ArgumentException(SR.Format(SR.
CannotConvertType
, typeof(CharacterMetrics), value.GetType()));
System\Windows\Media\CultureSpecificStringDictionary.cs (2)
185
throw new ArgumentException(SR.Format(SR.
CannotConvertType
, typeof(SC.DictionaryEntry), elementType));
340
throw new ArgumentException(SR.Format(SR.
CannotConvertType
, key.GetType(), typeof(XmlLanguage)), "key");
System\Windows\Media\FamilyMapCollection.cs (2)
108
throw new ArgumentException(SR.Format(SR.
CannotConvertType
, typeof(FamilyTypeface), elementType));
380
throw new ArgumentException(SR.Format(SR.
CannotConvertType
, obj.GetType(), typeof(FontFamilyMap)));
System\Windows\Media\FamilyTypefaceCollection.cs (2)
373
throw new ArgumentException(SR.Format(SR.
CannotConvertType
, obj.GetType(), typeof(FamilyTypeface)));
387
throw new ArgumentException(SR.Format(SR.
CannotConvertType
, typeof(FamilyTypeface[]), elementType));