133 references to InvalidCastException
Aspire.Confluent.Kafka (1)
Aspire.Microsoft.Data.SqlClient (1)
Aspire.Microsoft.EntityFrameworkCore.SqlServer (1)
Aspire.StackExchange.Redis (1)
dotnet-svcutil-lib (19)
FrameworkFork\Microsoft.Xml\Xml\BinaryXml\XmlBinaryReader.cs (7)
1120throw new InvalidCastException(string.Format(ResXml.XmlBinary_CastNotSupported, _token, "Boolean"));
1210throw new InvalidCastException(string.Format(ResXml.XmlBinary_CastNotSupported, _token, "DateTime"));
1305throw new InvalidCastException(string.Format(ResXml.XmlBinary_CastNotSupported, _token, "Double"));
1400throw new InvalidCastException(string.Format(ResXml.XmlBinary_CastNotSupported, _token, "Float"));
1495throw new InvalidCastException(string.Format(ResXml.XmlBinary_CastNotSupported, _token, "Decimal"));
1590throw new InvalidCastException(string.Format(ResXml.XmlBinary_CastNotSupported, _token, "Int32"));
1685throw new InvalidCastException(string.Format(ResXml.XmlBinary_CastNotSupported, _token, "Int64"));
FrameworkFork\Microsoft.Xml\Xml\schema\XmlValueConverter.cs (9)
564return new InvalidCastException(string.Format(ResXml.XmlConvert_TypeBadMapping, XmlTypeName, sourceType.Name));
566return new InvalidCastException(string.Format(ResXml.XmlConvert_TypeBadMapping2, XmlTypeName, sourceType.Name, destinationType.Name));
724throw new InvalidCastException(string.Format(ResXml.XmlConvert_TypeNoNamespace, value, prefix));
729throw new InvalidCastException(string.Format(ResXml.XmlConvert_TypeNoNamespace, value, prefix));
855throw new InvalidCastException(string.Format(ResXml.XmlConvert_TypeNoPrefix, qname.ToString(), qname.Namespace));
2913throw new InvalidCastException(string.Format(ResXml.XmlConvert_TypeToString, XmlTypeName, sourceType.Name));
2916throw new InvalidCastException(string.Format(ResXml.XmlConvert_TypeFromString, XmlTypeName, destinationType.Name));
3660return new InvalidCastException(string.Format(ResXml.XmlConvert_TypeListBadMapping, XmlTypeName, sourceType.Name));
3662return new InvalidCastException(string.Format(ResXml.XmlConvert_TypeListBadMapping2, XmlTypeName, sourceType.Name, destinationType.Name));
Microsoft.AspNetCore.DataProtection (1)
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (2)
Microsoft.CodeAnalysis.EditorFeatures.Wpf (2)
Microsoft.Data.Analysis (1)
Microsoft.DotNet.Git.IssueManager (3)
Microsoft.Maui.Controls (2)
Microsoft.Maui.Controls.Compatibility (1)
Microsoft.VisualBasic.Core (5)
Microsoft.VisualStudio.LanguageServices.DevKit (2)
PresentationFramework (2)
System.ComponentModel.Annotations (3)
System.Data.Common (1)
System.Linq.Expressions (2)
System.Private.CoreLib (50)
src\libraries\System.Private.CoreLib\src\System\Char.cs (5)
519throw new InvalidCastException(SR.Format(SR.InvalidCast_FromTo, "Char", "Boolean"));
569throw new InvalidCastException(SR.Format(SR.InvalidCast_FromTo, "Char", "Single"));
574throw new InvalidCastException(SR.Format(SR.InvalidCast_FromTo, "Char", "Double"));
579throw new InvalidCastException(SR.Format(SR.InvalidCast_FromTo, "Char", "Decimal"));
584throw new InvalidCastException(SR.Format(SR.InvalidCast_FromTo, "Char", "DateTime"));
System.Private.Windows.Core (1)
System.Private.Xml (19)
System\Xml\BinaryXml\XmlBinaryReader.cs (7)
1109throw new InvalidCastException(SR.Format(SR.XmlBinary_CastNotSupported, _token, "Boolean"));
1199throw new InvalidCastException(SR.Format(SR.XmlBinary_CastNotSupported, _token, "DateTime"));
1294throw new InvalidCastException(SR.Format(SR.XmlBinary_CastNotSupported, _token, "Double"));
1389throw new InvalidCastException(SR.Format(SR.XmlBinary_CastNotSupported, _token, "Float"));
1484throw new InvalidCastException(SR.Format(SR.XmlBinary_CastNotSupported, _token, "Decimal"));
1579throw new InvalidCastException(SR.Format(SR.XmlBinary_CastNotSupported, _token, "Int32"));
1674throw new InvalidCastException(SR.Format(SR.XmlBinary_CastNotSupported, _token, "Int64"));
System\Xml\Schema\XmlValueConverter.cs (9)
478return new InvalidCastException(SR.Format(SR.XmlConvert_TypeBadMapping, XmlTypeName, sourceType.Name));
480return new InvalidCastException(SR.Format(SR.XmlConvert_TypeBadMapping2, XmlTypeName, sourceType.Name, destinationType.Name));
639throw new InvalidCastException(SR.Format(SR.XmlConvert_TypeNoNamespace, value, prefix));
644throw new InvalidCastException(SR.Format(SR.XmlConvert_TypeNoNamespace, value, prefix));
770throw new InvalidCastException(SR.Format(SR.XmlConvert_TypeNoPrefix, qname, qname.Namespace));
2493throw new InvalidCastException(SR.Format(SR.XmlConvert_TypeToString, XmlTypeName, sourceType.Name));
2496throw new InvalidCastException(SR.Format(SR.XmlConvert_TypeFromString, XmlTypeName, destinationType.Name));
3128return new InvalidCastException(SR.Format(SR.XmlConvert_TypeListBadMapping, XmlTypeName, sourceType.Name));
3130return new InvalidCastException(SR.Format(SR.XmlConvert_TypeListBadMapping2, XmlTypeName, sourceType.Name, destinationType.Name));
System.Runtime.InteropServices (1)
System.Text.Json (1)
System.Text.RegularExpressions (1)
System.Windows.Forms (10)