176 instantiations of InvalidCastException
Aspire.Confluent.Kafka (1)
Aspire.Dashboard.Tests (2)
Aspire.Hosting.Kubernetes (1)
Aspire.Hosting.RemoteHost (5)
Aspire.Hosting.RemoteHost.Tests (1)
Aspire.StackExchange.Redis (1)
Crossgen2Tasks (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.Components.Forms (1)
Microsoft.AspNetCore.DataProtection (1)
Microsoft.Data.Analysis (1)
Microsoft.Diagnostics.DataContractReader.Legacy (10)
Microsoft.DotNet.ApiCompat.Task (1)
Microsoft.Extensions.Http.Resilience.Tests (3)
Microsoft.Extensions.VectorData.Abstractions (2)
Microsoft.Maui.Controls (1)
Microsoft.NET.Build.Extensions.Tasks (1)
Microsoft.NET.Build.Tasks (1)
Microsoft.Private.Windows.Core (5)
Microsoft.TemplateEngine.Orchestrator.RunnableProjects (3)
NuGet.ProjectModel (4)
PresentationFramework (2)
System.Collections.Concurrent (1)
System.CommandLine (1)
System.ComponentModel.Annotations (3)
System.Data.Common (2)
System.Data.Odbc (3)
System.Data.OleDb (3)
System.Linq.Expressions (4)
System.Private.CoreLib (54)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Char.cs (5)
589throw new InvalidCastException(SR.Format(SR.InvalidCast_FromTo, "Char", "Boolean"));
639throw new InvalidCastException(SR.Format(SR.InvalidCast_FromTo, "Char", "Single"));
644throw new InvalidCastException(SR.Format(SR.InvalidCast_FromTo, "Char", "Double"));
649throw new InvalidCastException(SR.Format(SR.InvalidCast_FromTo, "Char", "Decimal"));
654throw new InvalidCastException(SR.Format(SR.InvalidCast_FromTo, "Char", "DateTime"));
System.Private.Windows.Core (5)
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.Reflection.Metadata (1)
System.Runtime.InteropServices (1)
System.Text.Json (1)
System.Text.RegularExpressions (1)
System.Windows.Forms (10)
352 references to InvalidCastException
Aspire.Hosting (1)
Aspire.Hosting.Kubernetes (1)
Aspire.Hosting.RemoteHost (1)
Aspire.Hosting.RemoteHost.Tests (5)
dotnet-aot (1)
dotnet-svcutil-lib (38)
GenerateDocumentationAndConfigFiles (7)
Microsoft.Analyzers.Local (3)
Microsoft.AspNetCore.DataProtection (1)
Microsoft.Build (14)
Microsoft.Build.Framework (3)
Microsoft.CodeAnalysis (9)
Microsoft.CodeAnalysis.Analyzers (7)
Microsoft.CodeAnalysis.AnalyzerUtilities (7)
Microsoft.CodeAnalysis.CodeStyle (7)
Microsoft.CodeAnalysis.CSharp (2)
Microsoft.CodeAnalysis.Extensions.Package (7)
Microsoft.CodeAnalysis.NetAnalyzers (1)
Microsoft.CodeAnalysis.ResxSourceGenerator (7)
Microsoft.CodeAnalysis.VisualBasic (2)
Microsoft.CodeAnalysis.Workspaces (7)
Microsoft.Data.Analysis.Tests (1)
Microsoft.Extensions.AI.Abstractions (1)
Microsoft.Extensions.Diagnostics.Testing (1)
Microsoft.Maui.Controls (3)
Microsoft.Private.Windows.Core (3)
Microsoft.Win32.Registry (1)
Mono.Cecil (5)
mscorlib (1)
netstandard (1)
PresentationCore (25)
PresentationFramework (11)
Roslyn.Diagnostics.Analyzers (7)
System.Collections (5)
System.Collections.Concurrent (1)
System.Collections.Immutable (1)
System.CommandLine (2)
System.ComponentModel.Annotations (2)
System.ComponentModel.Composition (8)
System.ComponentModel.TypeConverter (4)
System.Data.Common (15)
System.Data.Odbc (11)
System.Data.OleDb (15)
System.Diagnostics.PerformanceCounter (2)
System.DirectoryServices (2)
System.Linq.Expressions (6)
System.Management (4)
System.Private.CoreLib (14)
System.Private.Windows.Core (3)
System.Private.Xml (39)
System.Resources.Extensions (2)
System.Runtime (1)
System.ServiceModel.Primitives (2)
System.Speech (1)
System.Text.Json (10)
System.Windows.Forms (5)
System.Windows.Forms.Design (1)
System.Windows.Forms.Primitives (1)
System.Xaml (2)
UIAutomationClientSideProviders (2)