11 references to ConvertInvalidPrimitive
System.ComponentModel.TypeConverter (11)
src\libraries\Common\src\System\Drawing\ColorConverterCommon.cs (1)
112throw new ArgumentException(SR.Format(SR.ConvertInvalidPrimitive, text.ToString(), nameof(Int32)), e);
System\ComponentModel\BaseNumberConverter.cs (1)
80throw new ArgumentException(SR.Format(SR.ConvertInvalidPrimitive, text, TargetType.Name), nameof(value), e);
System\ComponentModel\BooleanConverter.cs (1)
39throw new FormatException(SR.Format(SR.ConvertInvalidPrimitive, (string)value, nameof(Boolean)), e);
System\ComponentModel\CharConverter.cs (1)
55throw new FormatException(SR.Format(SR.ConvertInvalidPrimitive, text, nameof(Char)));
System\ComponentModel\DateOnlyConverter.cs (1)
66throw new FormatException(SR.Format(SR.ConvertInvalidPrimitive, (string)value, nameof(DateOnly)), e);
System\ComponentModel\DateTimeConverter.cs (1)
70throw new FormatException(SR.Format(SR.ConvertInvalidPrimitive, (string)value, nameof(DateTime)), e);
System\ComponentModel\DateTimeOffsetConverter.cs (1)
70throw new FormatException(SR.Format(SR.ConvertInvalidPrimitive, (string)value, nameof(DateTimeOffset)), e);
System\ComponentModel\EnumConverter.cs (1)
104throw new FormatException(SR.Format(SR.ConvertInvalidPrimitive, (string)value, EnumType.Name), e);
System\ComponentModel\TimeOnlyConverter.cs (1)
66throw new FormatException(SR.Format(SR.ConvertInvalidPrimitive, (string)value, nameof(TimeOnly)), e);
System\ComponentModel\TimeSpanConverter.cs (1)
51throw new FormatException(SR.Format(SR.ConvertInvalidPrimitive, (string)value, nameof(TimeSpan)), e);
System\ComponentModel\VersionConverter.cs (1)
50throw new FormatException(SR.Format(SR.ConvertInvalidPrimitive, versionString, nameof(Version)), e);