3 types derived from NotSupportedException
Microsoft.CodeAnalysis.Scripting (1)
Microsoft.Maui.Essentials (1)
System.Private.CoreLib (1)
6299 instantiations of NotSupportedException
Aspire.Confluent.Kafka (1)
Aspire.Dashboard (1)
Aspire.Hosting (1)
Aspire.Hosting.Azure (10)
Aspire.Hosting.Azure.AppContainers (15)
Aspire.Hosting.Azure.AppService (5)
Aspire.Hosting.Azure.CosmosDB (2)
Aspire.Hosting.Azure.KeyVault (1)
Aspire.Hosting.Docker (2)
Aspire.Hosting.Kubernetes (3)
Aspire.Microsoft.Data.SqlClient (1)
Aspire.Microsoft.EntityFrameworkCore.SqlServer (1)
Aspire.StackExchange.Redis (2)
AutobahnTestApp (1)
BasicWebSite (6)
ConfigurationSchemaGenerator (1)
CSharpSyntaxGenerator (1)
dotnet-svcutil-lib (173)
FrameworkFork\Microsoft.Xml\Xml\Serialization\Types.cs (9)
388throw new NotSupportedException(string.Format(ResXml.XmlSerializerUnsupportedType, FullName));
823exception = new NotSupportedException(string.Format(ResXml.XmlSerializerUnsupportedType, type.FullName));
845exception = new NotSupportedException(string.Format(ResXml.XmlUnsupportedRank, type.FullName));
867exception = new NotSupportedException(string.Format(ResXml.XmlSerializerUnsupportedType, type.FullName));
923exception = new NotSupportedException(string.Format(ResXml.XmlUnsupportedInterface, type.FullName));
927exception = new NotSupportedException(string.Format(ResXml.XmlUnsupportedInterfaceDetails, memberInfo.DeclaringType.FullName + "." + memberInfo.Name, type.FullName));
937exception = new NotSupportedException(string.Format(ResXml.XmlSerializerUnsupportedType, type.FullName));
1346throw new NotSupportedException(string.Format(ResXml.XmlUnsupportedIDictionary, type.FullName));
1350throw new NotSupportedException(string.Format(ResXml.XmlUnsupportedIDictionaryDetails, memberInfo, type.FullName));
GenerateDocumentationAndConfigFiles (104)
GenerateRulesMissingDocumentation (1)
http2cat (6)
Http2SampleApp (1)
IdeCoreBenchmarks (1)
IdentitySample.PasskeyConformance (1)
IIS.FunctionalTests (7)
IIS.LongTests (7)
IIS.NewHandler.FunctionalTests (7)
IIS.NewShim.FunctionalTests (7)
IIS.ShadowCopy.Tests (7)
IISExpress.FunctionalTests (7)
illink (11)
ILLink.RoslynAnalyzer (1)
InMemory.FunctionalTests (1)
InProcessWebSite (1)
Interop.FunctionalTests (1)
Metrics (107)
Metrics.Legacy (107)
Microsoft.AspNetCore (23)
Microsoft.AspNetCore.App.Analyzers.Test (2)
Microsoft.AspNetCore.App.CodeFixes (2)
Microsoft.AspNetCore.Authentication.Negotiate (2)
Microsoft.AspNetCore.Components (4)
Microsoft.AspNetCore.Components.Authorization (4)
Microsoft.AspNetCore.Components.Endpoints (1)
Microsoft.AspNetCore.Components.Endpoints.Tests (4)
Microsoft.AspNetCore.Components.QuickGrid (2)
Microsoft.AspNetCore.Components.Server (19)
Microsoft.AspNetCore.Components.Tests (1)
Microsoft.AspNetCore.Components.Web (11)
Microsoft.AspNetCore.Components.WebAssembly (6)
Microsoft.AspNetCore.Components.WebView (12)
Microsoft.AspNetCore.Components.WebView.Maui (3)
Microsoft.AspNetCore.Components.WebView.Test (2)
Microsoft.AspNetCore.Components.WebView.WindowsForms (4)
Microsoft.AspNetCore.Connections.Abstractions (1)
Microsoft.AspNetCore.DataProtection (1)
Microsoft.AspNetCore.DataProtection.Tests (2)
Microsoft.AspNetCore.Diagnostics.Abstractions (1)
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (9)
Microsoft.AspNetCore.Hosting (8)
Microsoft.AspNetCore.Hosting.Tests (2)
Microsoft.AspNetCore.Hosting.WindowsServices.Tests (1)
Microsoft.AspNetCore.Http (6)
Microsoft.AspNetCore.Http.Abstractions (54)
Microsoft.AspNetCore.Http.Connections (10)
Microsoft.AspNetCore.Http.Connections.Client (7)
Microsoft.AspNetCore.Http.Extensions (9)
Microsoft.AspNetCore.Http.RequestDelegateGenerator (2)
Microsoft.AspNetCore.Http.Results (1)
Microsoft.AspNetCore.Http.Tests (7)
Microsoft.AspNetCore.HttpLogging (2)
Microsoft.AspNetCore.Identity (6)
Microsoft.AspNetCore.Identity.Test (1)
Microsoft.AspNetCore.Identity.UI (4)
Microsoft.AspNetCore.InternalTesting (1)
Microsoft.AspNetCore.JsonPatch (1)
Microsoft.AspNetCore.JsonPatch.SystemTextJson (1)
Microsoft.AspNetCore.JsonPatch.Tests (1)
Microsoft.AspNetCore.Mvc.Abstractions (9)
Microsoft.AspNetCore.Mvc.Core (11)
Microsoft.AspNetCore.Mvc.Core.Test (3)
Microsoft.AspNetCore.Mvc.Core.TestCommon (6)
Microsoft.AspNetCore.Mvc.FunctionalTests (1)
Microsoft.AspNetCore.Mvc.IntegrationTests (6)
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (2)
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation.Test (2)
Microsoft.AspNetCore.Mvc.RazorPages (2)
Microsoft.AspNetCore.Mvc.Testing (1)
Microsoft.AspNetCore.Mvc.ViewFeatures (6)
Microsoft.AspNetCore.Mvc.Views.TestCommon (5)
Microsoft.AspNetCore.OpenApi (6)
Microsoft.AspNetCore.OpenApi.SourceGenerators (2)
Microsoft.AspNetCore.Owin (10)
Microsoft.AspNetCore.ResponseCaching (4)
Microsoft.AspNetCore.ResponseCompression (9)
Microsoft.AspNetCore.Rewrite (28)
Microsoft.AspNetCore.Routing (7)
Microsoft.AspNetCore.Server.HttpSys (16)
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (6)
Microsoft.AspNetCore.Server.IIS (34)
Microsoft.AspNetCore.Server.IntegrationTesting (2)
Microsoft.AspNetCore.Server.IntegrationTesting.IIS (1)
Microsoft.AspNetCore.Server.Kestrel.Core (59)
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (8)
Microsoft.AspNetCore.Server.Kestrel.Transport.NamedPipes (2)
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (2)
Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets (1)
Microsoft.AspNetCore.Shared.Tests (12)
Microsoft.AspNetCore.SignalR.Client.Core (5)
Microsoft.AspNetCore.SignalR.Client.Tests (5)
Microsoft.AspNetCore.SignalR.Common (5)
Microsoft.AspNetCore.SignalR.Core (3)
Microsoft.AspNetCore.SignalR.Microbenchmarks (1)
Microsoft.AspNetCore.SignalR.Protocols.MessagePack (5)
Microsoft.AspNetCore.SignalR.Protocols.NewtonsoftJson (5)
Microsoft.AspNetCore.SignalR.Specification.Tests (10)
Microsoft.AspNetCore.SignalR.StackExchangeRedis (5)
Microsoft.AspNetCore.SignalR.Tests.Utils (7)
Microsoft.AspNetCore.StaticFiles.Tests (1)
Microsoft.AspNetCore.TestHost (21)
Microsoft.AspNetCore.WebSockets.Tests (10)
Microsoft.AspNetCore.WebUtilities (20)
Microsoft.AspNetCore.WebUtilities.Tests (6)
Microsoft.Build.Tasks.CodeAnalysis.Sdk (1)
Microsoft.Cci.Extensions (10)
Microsoft.CodeAnalysis (155)
Microsoft.CodeAnalysis.Analyzers (105)
Microsoft.CodeAnalysis.AnalyzerUtilities (146)
Microsoft.CodeAnalysis.BannedApiAnalyzers (105)
Microsoft.CodeAnalysis.CodeStyle (99)
Microsoft.CodeAnalysis.Collections.Package (89)
Microsoft.CodeAnalysis.CSharp (25)
Microsoft.CodeAnalysis.CSharp.CodeStyle (5)
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (5)
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (2)
Microsoft.CodeAnalysis.CSharp.Features (2)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (3)
Microsoft.CodeAnalysis.CSharp.Test.Utilities (2)
Microsoft.CodeAnalysis.CSharp.Workspaces (6)
Microsoft.CodeAnalysis.Debugging.Package (1)
Microsoft.CodeAnalysis.EditorFeatures (2)
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (3)
Microsoft.CodeAnalysis.ExpressionEvaluator.FunctionResolver (2)
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider (2)
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider.Utilities (2)
Microsoft.CodeAnalysis.Extensions.Package (90)
Microsoft.CodeAnalysis.Features (4)
Microsoft.CodeAnalysis.InteractiveHost (90)
Microsoft.CodeAnalysis.LanguageServer (1)
Microsoft.CodeAnalysis.LanguageServer.Protocol (2)
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (105)
Microsoft.CodeAnalysis.PooledObjects.Package (1)
Microsoft.CodeAnalysis.PublicApiAnalyzers (105)
Microsoft.CodeAnalysis.PublicApiAnalyzers.UnitTests (1)
Microsoft.CodeAnalysis.ResxSourceGenerator (105)
Microsoft.CodeAnalysis.Test.Utilities (9)
Microsoft.CodeAnalysis.Threading.Package (89)
Microsoft.CodeAnalysis.UnitTests (3)
Microsoft.CodeAnalysis.Workspaces (137)
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (96)
Microsoft.CodeAnalysis.Workspaces.UnitTests (1)
Microsoft.CodeAnalysis.XunitHook (1)
Microsoft.CommonLanguageServerProtocol.Framework.Package (1)
Microsoft.Data.Analysis (171)
Computations\Arithmetic.cs (41)
119throw new NotSupportedException();
194protected virtual void Add(ReadOnlySpan<T> x, ReadOnlySpan<T> y, Span<T> destination) => throw new NotSupportedException();
195protected virtual void Add(ReadOnlySpan<T> x, T y, Span<T> destination) => throw new NotSupportedException();
196protected virtual void Add(T x, ReadOnlySpan<T> y, Span<T> destination) => throw new NotSupportedException();
197protected virtual void Subtract(ReadOnlySpan<T> x, ReadOnlySpan<T> y, Span<T> destination) => throw new NotSupportedException();
198protected virtual void Subtract(ReadOnlySpan<T> x, T y, Span<T> destination) => throw new NotSupportedException();
199protected virtual void Subtract(T x, ReadOnlySpan<T> y, Span<T> destination) => throw new NotSupportedException();
200protected virtual void Multiply(ReadOnlySpan<T> x, ReadOnlySpan<T> y, Span<T> destination) => throw new NotSupportedException();
201protected virtual void Multiply(ReadOnlySpan<T> x, T y, Span<T> destination) => throw new NotSupportedException();
202protected virtual void Multiply(T x, ReadOnlySpan<T> y, Span<T> destination) => throw new NotSupportedException();
203protected virtual void Divide(ReadOnlySpan<T> x, ReadOnlySpan<T> y, Span<T> destination) => throw new NotSupportedException();
204protected virtual void Divide(ReadOnlySpan<T> x, T y, Span<T> destination) => throw new NotSupportedException();
205protected virtual void Divide(T x, ReadOnlySpan<T> y, Span<T> destination) => throw new NotSupportedException();
206protected virtual void Modulo(ReadOnlySpan<T> x, ReadOnlySpan<T> y, Span<T> destination) => throw new NotSupportedException();
207protected virtual void Modulo(ReadOnlySpan<T> x, T y, Span<T> destination) => throw new NotSupportedException();
208protected virtual void Modulo(T x, ReadOnlySpan<T> y, Span<T> destination) => throw new NotSupportedException();
210protected virtual T Divide(T x, T y) => throw new NotSupportedException();
211protected virtual T Modulo(T x, T y) => throw new NotSupportedException();
213protected virtual void And(ReadOnlySpan<T> x, ReadOnlySpan<T> y, Span<T> destination) => throw new NotSupportedException();
214protected virtual void And(ReadOnlySpan<T> x, T y, Span<T> destination) => throw new NotSupportedException();
215protected virtual void And(T x, ReadOnlySpan<T> y, Span<T> destination) => throw new NotSupportedException();
216protected virtual void Or(ReadOnlySpan<T> x, ReadOnlySpan<T> y, Span<T> destination) => throw new NotSupportedException();
217protected virtual void Or(ReadOnlySpan<T> x, T y, Span<T> destination) => throw new NotSupportedException();
218protected virtual void Or(T x, ReadOnlySpan<T> y, Span<T> destination) => throw new NotSupportedException();
219protected virtual void Xor(ReadOnlySpan<T> x, ReadOnlySpan<T> y, Span<T> destination) => throw new NotSupportedException();
220protected virtual void Xor(ReadOnlySpan<T> x, T y, Span<T> destination) => throw new NotSupportedException();
221protected virtual void Xor(T x, ReadOnlySpan<T> y, Span<T> destination) => throw new NotSupportedException();
223protected virtual void LeftShift(ReadOnlySpan<T> x, int y, Span<T> destination) => throw new NotSupportedException();
224protected virtual void RightShift(ReadOnlySpan<T> x, int y, Span<T> destination) => throw new NotSupportedException();
226protected virtual void ElementwiseEquals(ReadOnlySpan<T> x, ReadOnlySpan<T> y, Span<bool> destination) => throw new NotSupportedException();
227protected virtual void ElementwiseEquals(ReadOnlySpan<T> x, T y, Span<bool> destination) => throw new NotSupportedException();
228protected virtual void ElementwiseNotEquals(ReadOnlySpan<T> x, ReadOnlySpan<T> y, Span<bool> destination) => throw new NotSupportedException();
229protected virtual void ElementwiseNotEquals(ReadOnlySpan<T> x, T y, Span<bool> destination) => throw new NotSupportedException();
230protected virtual void ElementwiseGreaterThanOrEqual(ReadOnlySpan<T> x, ReadOnlySpan<T> y, Span<bool> destination) => throw new NotSupportedException();
231protected virtual void ElementwiseGreaterThanOrEqual(ReadOnlySpan<T> x, T y, Span<bool> destination) => throw new NotSupportedException();
232protected virtual void ElementwiseLessThanOrEqual(ReadOnlySpan<T> x, ReadOnlySpan<T> y, Span<bool> destination) => throw new NotSupportedException();
233protected virtual void ElementwiseLessThanOrEqual(ReadOnlySpan<T> x, T y, Span<bool> destination) => throw new NotSupportedException();
234protected virtual void ElementwiseGreaterThan(ReadOnlySpan<T> x, ReadOnlySpan<T> y, Span<bool> destination) => throw new NotSupportedException();
235protected virtual void ElementwiseGreaterThan(ReadOnlySpan<T> x, T y, Span<bool> destination) => throw new NotSupportedException();
236protected virtual void ElementwiseLessThan(ReadOnlySpan<T> x, ReadOnlySpan<T> y, Span<bool> destination) => throw new NotSupportedException();
237protected virtual void ElementwiseLessThan(ReadOnlySpan<T> x, T y, Span<bool> destination) => throw new NotSupportedException();
Microsoft.DotNet.Build.Tasks.Installers (2)
Microsoft.DotNet.Helix.Client (1)
Microsoft.DotNet.SwaggerGenerator.CodeGenerator (6)
Microsoft.DotNet.XUnitAssert.Tests (1)
Microsoft.Extensions.AI (4)
Microsoft.Extensions.AI.Abstractions (15)
Microsoft.Extensions.AI.AzureAIInference (4)
Microsoft.Extensions.AI.Evaluation.Console (1)
Microsoft.Extensions.AI.Evaluation.Quality (1)
Microsoft.Extensions.AI.Evaluation.Safety (3)
Microsoft.Extensions.AI.Integration.Tests (1)
Microsoft.Extensions.AI.OpenAI (4)
Microsoft.Extensions.AI.Tests (1)
Microsoft.Extensions.Caching.Hybrid (2)
Microsoft.Extensions.Caching.Hybrid.Tests (19)
Microsoft.Extensions.Caching.Memory (1)
Microsoft.Extensions.Caching.StackExchangeRedis.Tests (4)
Microsoft.Extensions.DependencyInjection (2)
Microsoft.Extensions.DependencyModel (1)
Microsoft.Extensions.Diagnostics.HealthChecks.Tests (1)
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (1)
Microsoft.Extensions.Hosting (4)
Microsoft.Extensions.Http.Diagnostics (7)
Microsoft.Extensions.Http.Diagnostics.PerformanceTests (3)
Microsoft.Extensions.Http.Diagnostics.Tests (2)
Microsoft.Extensions.Http.Polly.Tests (1)
Microsoft.Extensions.Http.Resilience.Tests (1)
Microsoft.Extensions.Identity.Core (20)
Microsoft.Extensions.ObjectPool.DependencyInjection.Tests (3)
Microsoft.Extensions.Options.Contextual.Tests (1)
Microsoft.Extensions.Primitives (7)
Microsoft.Extensions.Telemetry.Tests (1)
Microsoft.Extensions.Validation.ValidationsGenerator (2)
Microsoft.Gen.ComplianceReports.Unit.Tests (6)
Microsoft.Gen.ContextualOptions.Unit.Tests (4)
Microsoft.Gen.Logging.Generated.Tests (16)
Microsoft.Gen.Logging.Unit.Tests (4)
Microsoft.Gen.MetadataExtractor (1)
Microsoft.Gen.MetadataExtractor.Unit.Tests (6)
Microsoft.Gen.Metrics (2)
Microsoft.Gen.Metrics.Unit.Tests (4)
Microsoft.Gen.MetricsReports (1)
Microsoft.Gen.MetricsReports.Unit.Tests (6)
Microsoft.JSInterop (4)
Microsoft.Maui (20)
Microsoft.Maui.Controls (90)
Microsoft.Maui.Controls.BindingSourceGen (5)
Microsoft.Maui.Controls.Build.Tasks (1)
Microsoft.Maui.Controls.Maps (1)
Microsoft.Maui.Controls.Xaml (1)
Microsoft.Maui.Essentials (1)
Microsoft.Maui.Graphics (9)
Microsoft.Maui.Graphics.Skia (1)
Microsoft.Maui.Graphics.Win2D.WinUI.Desktop (1)
Microsoft.ML.AutoML (8)
Microsoft.ML.Core (8)
Microsoft.ML.CpuMath (6)
Microsoft.ML.Data (2)
Microsoft.ML.GenAI.LLaMA (2)
Microsoft.ML.GenAI.Phi (2)
Microsoft.ML.TensorFlow (3)
Microsoft.ML.Tokenizers (2)
Microsoft.ML.TorchSharp (3)
Microsoft.VisualBasic.Core (1)
Microsoft.VisualBasic.Tests (1)
Microsoft.VisualStudio.LanguageServices (8)
Microsoft.VisualStudio.LanguageServices.CodeLens (1)
Microsoft.VisualStudio.LanguageServices.CSharp (11)
Microsoft.VisualStudio.LanguageServices.Implementation (1)
PresentationBuildTasks (2)
PresentationCore (158)
src\Microsoft.DotNet.Wpf\src\Common\Graphics\wgx_render.cs (9)
816return new System.NotSupportedException(SR.Image_PropertyNotSupported, exceptionForHR);
825return new System.NotSupportedException(SR.Image_NoThumbnail, exceptionForHR);
841return new System.NotSupportedException(SR.Image_ComponentNotFound, exceptionForHR);
863return new System.NotSupportedException(SR.Image_UnsupportedPixelFormat, exceptionForHR);
866return new System.NotSupportedException(SR.Image_UnsupportedOperation, exceptionForHR);
896return new System.NotSupportedException(SR.Image_StreamNotAvailable, exceptionForHR);
917return new System.NotSupportedException(SR.Format(SR.Media_InsufficientVideoResources, null), exceptionForHR);
920return new System.NotSupportedException(SR.Format(SR.Media_HardwareVideoAccelerationNotAvailable, null), exceptionForHR);
923return new System.NotSupportedException(SR.Format(SR.Media_PlayerIsClosed, null), exceptionForHR);
PresentationFramework (168)
System\Windows\Markup\DependencyPropertyConverter.cs (5)
156throw new NotSupportedException(SR.Format(SR.ParserCannotConvertPropertyValue, "Property", typeof(DependencyProperty).FullName));
179throw new NotSupportedException(SR.Format(SR.ParserCannotConvertPropertyValue, "Property", typeof(DependencyProperty).FullName));
203throw new NotSupportedException(SR.Format(SR.ParserCannotConvertPropertyValue, "Property", typeof(DependencyProperty).FullName));
223throw new NotSupportedException(SR.Format(SR.ParserCannotConvertPropertyValue, "Property", typeof(DependencyProperty).FullName));
233throw new NotSupportedException(SR.Format(SR.ParserCannotConvertPropertyValue, "Property", typeof(DependencyProperty).FullName));
PresentationFramework.Fluent (1)
PresentationUI (4)
ReachFramework (6)
Roslyn.Diagnostics.Analyzers (107)
Roslyn.Diagnostics.Analyzers.UnitTests (2)
Roslyn.Diagnostics.CSharp.Analyzers (5)
Roslyn.Test.PdbUtilities (6)
ScenarioTests.Common.Tests (8)
Shared (4)
Shared.Tests (1)
System.Collections (42)
System.Collections.Concurrent (8)
System.Collections.Immutable (98)
System.Collections.NonGeneric (12)
System.Collections.Specialized (22)
System.ComponentModel.Composition (2)
System.ComponentModel.TypeConverter (30)
System.Configuration.ConfigurationManager (12)
System.Console (3)
System.Data.Common (23)
System.Data.Odbc (2)
System.Diagnostics.DiagnosticSource (1)
System.Diagnostics.Process (2)
System.DirectoryServices.Protocols (5)
System.Drawing.Common.Tests (6)
System.Formats.Cbor (1)
System.Formats.Nrbf (2)
System.Formats.Tar (4)
System.IO.Compression (63)
System.IO.Compression.Brotli (5)
System.IO.FileSystem.Watcher (2)
System.IO.Hashing (7)
System.IO.IsolatedStorage (1)
System.IO.MemoryMappedFiles (1)
System.IO.Packaging (7)
System.IO.Pipelines (15)
System.IO.Pipes (15)
System.IO.Ports (5)
System.Linq (8)
System.Linq.AsyncEnumerable (12)
System.Linq.Expressions (6)
System.Linq.Parallel (38)
System.Memory.Data (2)
System.Net.Http (53)
System.Net.Http.Json (1)
System.Net.HttpListener (11)
System.Net.Mail (17)
System.Net.NameResolution (1)
System.Net.NetworkInformation (13)
System.Net.Ping (2)
System.Net.Primitives (3)
System.Net.Quic (5)
System.Net.Requests (25)
System.Net.Security (17)
System.Net.Sockets (23)
System.Net.WebClient (6)
System.Net.WebSockets (11)
System.Net.WebSockets.Client (4)
System.Numerics.Tensors (76)
System.ObjectModel (12)
System.Private.CoreLib (472)
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\TypeBuilderInstantiation.cs (27)
99public override Guid GUID => throw new NotSupportedException();
102public override object InvokeMember(string name, BindingFlags invokeAttr, Binder? binder, object? target, object?[]? args, ParameterModifier[]? modifiers, CultureInfo? culture, string[]? namedParameters) { throw new NotSupportedException(); }
105public override RuntimeTypeHandle TypeHandle => throw new NotSupportedException();
164protected override ConstructorInfo GetConstructorImpl(BindingFlags bindingAttr, Binder? binder, CallingConventions callConvention, Type[] types, ParameterModifier[]? modifiers) { throw new NotSupportedException(SR.Format(SR.NotSupported_TypeBuilderInstantiation_ResolvingMembers, nameof(TypeBuilder.GetConstructor))); }
167public override ConstructorInfo[] GetConstructors(BindingFlags bindingAttr) { throw new NotSupportedException(SR.Format(SR.NotSupported_TypeBuilderInstantiation_ResolvingMembers, nameof(TypeBuilder.GetConstructor))); }
170protected override MethodInfo GetMethodImpl(string name, BindingFlags bindingAttr, Binder? binder, CallingConventions callConvention, Type[]? types, ParameterModifier[]? modifiers) { throw new NotSupportedException(SR.Format(SR.NotSupported_TypeBuilderInstantiation_ResolvingMembers, nameof(TypeBuilder.GetMethod))); }
173public override MethodInfo[] GetMethods(BindingFlags bindingAttr) { throw new NotSupportedException(SR.Format(SR.NotSupported_TypeBuilderInstantiation_ResolvingMembers, nameof(TypeBuilder.GetMethod))); }
176public override FieldInfo GetField(string name, BindingFlags bindingAttr) { throw new NotSupportedException(SR.Format(SR.NotSupported_TypeBuilderInstantiation_ResolvingMembers, nameof(TypeBuilder.GetField))); }
179public override FieldInfo[] GetFields(BindingFlags bindingAttr) { throw new NotSupportedException(SR.Format(SR.NotSupported_TypeBuilderInstantiation_ResolvingMembers, nameof(TypeBuilder.GetField))); }
183public override Type GetInterface(string name, bool ignoreCase) { throw new NotSupportedException(); }
186public override Type[] GetInterfaces() { throw new NotSupportedException(); }
189public override EventInfo GetEvent(string name, BindingFlags bindingAttr) { throw new NotSupportedException(); }
192public override EventInfo[] GetEvents() { throw new NotSupportedException(); }
195protected override PropertyInfo GetPropertyImpl(string name, BindingFlags bindingAttr, Binder? binder, Type? returnType, Type[]? types, ParameterModifier[]? modifiers) { throw new NotSupportedException(); }
198public override PropertyInfo[] GetProperties(BindingFlags bindingAttr) { throw new NotSupportedException(); }
201public override Type[] GetNestedTypes(BindingFlags bindingAttr) { throw new NotSupportedException(); }
204public override Type GetNestedType(string name, BindingFlags bindingAttr) { throw new NotSupportedException(); }
207public override MemberInfo[] GetMember(string name, MemberTypes type, BindingFlags bindingAttr) { throw new NotSupportedException(); }
209public override InterfaceMapping GetInterfaceMap([DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicMethods | DynamicallyAccessedMemberTypes.NonPublicMethods)] Type interfaceType) { throw new NotSupportedException(); }
212public override EventInfo[] GetEvents(BindingFlags bindingAttr) { throw new NotSupportedException(); }
215public override MemberInfo[] GetMembers(BindingFlags bindingAttr) { throw new NotSupportedException(); }
227public override Type GetElementType() { throw new NotSupportedException(); }
255public override bool IsAssignableFrom([NotNullWhen(true)] Type? c) { throw new NotSupportedException(); }
259throw new NotSupportedException();
264public override object[] GetCustomAttributes(bool inherit) { throw new NotSupportedException(); }
266public override object[] GetCustomAttributes(Type attributeType, bool inherit) { throw new NotSupportedException(); }
268public override bool IsDefined(Type attributeType, bool inherit) { throw new NotSupportedException(); }
src\libraries\System.Private.CoreLib\src\System\Reflection\SignatureType.cs (62)
54public sealed override Type MakeGenericType(params Type[] typeArguments) => throw new NotSupportedException(SR.NotSupported_SignatureType); // There is no SignatureType for type definition types so it would never be legal to call this.
81public sealed override Assembly Assembly => throw new NotSupportedException(SR.NotSupported_SignatureType);
82public sealed override Module Module => throw new NotSupportedException(SR.NotSupported_SignatureType);
84public sealed override Type ReflectedType => throw new NotSupportedException(SR.NotSupported_SignatureType);
85public sealed override Type BaseType => throw new NotSupportedException(SR.NotSupported_SignatureType);
88public sealed override Type[] GetInterfaces() => throw new NotSupportedException(SR.NotSupported_SignatureType);
89public sealed override bool IsAssignableFrom([NotNullWhen(true)] Type? c) => throw new NotSupportedException(SR.NotSupported_SignatureType);
90public sealed override int MetadataToken => throw new NotSupportedException(SR.NotSupported_SignatureType);
91public sealed override bool HasSameMetadataDefinitionAs(MemberInfo other) => throw new NotSupportedException(SR.NotSupported_SignatureType);
93public sealed override Type DeclaringType => throw new NotSupportedException(SR.NotSupported_SignatureType);
94public sealed override MethodBase DeclaringMethod => throw new NotSupportedException(SR.NotSupported_SignatureType);
96public sealed override Type[] GetGenericParameterConstraints() => throw new NotSupportedException(SR.NotSupported_SignatureType);
97public sealed override GenericParameterAttributes GenericParameterAttributes => throw new NotSupportedException(SR.NotSupported_SignatureType);
98public sealed override bool IsEnumDefined(object value) => throw new NotSupportedException(SR.NotSupported_SignatureType);
99public sealed override string GetEnumName(object value) => throw new NotSupportedException(SR.NotSupported_SignatureType);
100public sealed override string[] GetEnumNames() => throw new NotSupportedException(SR.NotSupported_SignatureType);
101public sealed override Type GetEnumUnderlyingType() => throw new NotSupportedException(SR.NotSupported_SignatureType);
103public sealed override Array GetEnumValues() => throw new NotSupportedException(SR.NotSupported_SignatureType);
104public sealed override Guid GUID => throw new NotSupportedException(SR.NotSupported_SignatureType);
105protected sealed override TypeCode GetTypeCodeImpl() => throw new NotSupportedException(SR.NotSupported_SignatureType);
106protected sealed override TypeAttributes GetAttributeFlagsImpl() => throw new NotSupportedException(SR.NotSupported_SignatureType);
109public sealed override ConstructorInfo[] GetConstructors(BindingFlags bindingAttr) => throw new NotSupportedException(SR.NotSupported_SignatureType);
112public sealed override EventInfo GetEvent(string name, BindingFlags bindingAttr) => throw new NotSupportedException(SR.NotSupported_SignatureType);
115public sealed override EventInfo[] GetEvents(BindingFlags bindingAttr) => throw new NotSupportedException(SR.NotSupported_SignatureType);
118public sealed override FieldInfo GetField(string name, BindingFlags bindingAttr) => throw new NotSupportedException(SR.NotSupported_SignatureType);
121public sealed override FieldInfo[] GetFields(BindingFlags bindingAttr) => throw new NotSupportedException(SR.NotSupported_SignatureType);
124public sealed override MemberInfo[] GetMembers(BindingFlags bindingAttr) => throw new NotSupportedException(SR.NotSupported_SignatureType);
127public sealed override MethodInfo[] GetMethods(BindingFlags bindingAttr) => throw new NotSupportedException(SR.NotSupported_SignatureType);
130public sealed override Type GetNestedType(string name, BindingFlags bindingAttr) => throw new NotSupportedException(SR.NotSupported_SignatureType);
133public sealed override Type[] GetNestedTypes(BindingFlags bindingAttr) => throw new NotSupportedException(SR.NotSupported_SignatureType);
136public sealed override PropertyInfo[] GetProperties(BindingFlags bindingAttr) => throw new NotSupportedException(SR.NotSupported_SignatureType);
139public sealed override object InvokeMember(string name, BindingFlags invokeAttr, Binder? binder, object? target, object?[]? args, ParameterModifier[]? modifiers, CultureInfo? culture, string[]? namedParameters) => throw new NotSupportedException(SR.NotSupported_SignatureType);
142protected sealed override MethodInfo GetMethodImpl(string name, BindingFlags bindingAttr, Binder? binder, CallingConventions callConvention, Type[]? types, ParameterModifier[]? modifiers) => throw new NotSupportedException(SR.NotSupported_SignatureType);
145protected sealed override MethodInfo GetMethodImpl(string name, int genericParameterCount, BindingFlags bindingAttr, Binder? binder, CallingConventions callConvention, Type[]? types, ParameterModifier[]? modifiers) => throw new NotSupportedException(SR.NotSupported_SignatureType);
148protected sealed override PropertyInfo GetPropertyImpl(string name, BindingFlags bindingAttr, Binder? binder, Type? returnType, Type[]? types, ParameterModifier[]? modifiers) => throw new NotSupportedException(SR.NotSupported_SignatureType);
151public sealed override MemberInfo[] FindMembers(MemberTypes memberType, BindingFlags bindingAttr, MemberFilter? filter, object? filterCriteria) => throw new NotSupportedException(SR.NotSupported_SignatureType);
154public sealed override MemberInfo[] GetMember(string name, BindingFlags bindingAttr) => throw new NotSupportedException(SR.NotSupported_SignatureType);
157public sealed override MemberInfo[] GetMember(string name, MemberTypes type, BindingFlags bindingAttr) => throw new NotSupportedException(SR.NotSupported_SignatureType);
166public sealed override MemberInfo[] GetDefaultMembers() => throw new NotSupportedException(SR.NotSupported_SignatureType);
169public sealed override EventInfo[] GetEvents() => throw new NotSupportedException(SR.NotSupported_SignatureType);
171public sealed override object[] GetCustomAttributes(bool inherit) => throw new NotSupportedException(SR.NotSupported_SignatureType);
172public sealed override object[] GetCustomAttributes(Type attributeType, bool inherit) => throw new NotSupportedException(SR.NotSupported_SignatureType);
173public sealed override bool IsDefined(Type attributeType, bool inherit) => throw new NotSupportedException(SR.NotSupported_SignatureType);
174public sealed override IList<CustomAttributeData> GetCustomAttributesData() => throw new NotSupportedException(SR.NotSupported_SignatureType);
178public sealed override Type GetInterface(string name, bool ignoreCase) => throw new NotSupportedException(SR.NotSupported_SignatureType);
181protected sealed override ConstructorInfo GetConstructorImpl(BindingFlags bindingAttr, Binder? binder, CallingConventions callConvention, Type[] types, ParameterModifier[]? modifiers) => throw new NotSupportedException(SR.NotSupported_SignatureType);
183protected sealed override bool IsCOMObjectImpl() => throw new NotSupportedException(SR.NotSupported_SignatureType);
184protected sealed override bool IsPrimitiveImpl() => throw new NotSupportedException(SR.NotSupported_SignatureType);
185public sealed override IEnumerable<CustomAttributeData> CustomAttributes => throw new NotSupportedException(SR.NotSupported_SignatureType);
188public sealed override Type[] FindInterfaces(TypeFilter filter, object? filterCriteria) => throw new NotSupportedException(SR.NotSupported_SignatureType);
189public sealed override InterfaceMapping GetInterfaceMap([DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicMethods | DynamicallyAccessedMemberTypes.NonPublicMethods)] Type interfaceType) => throw new NotSupportedException(SR.NotSupported_SignatureType);
190protected sealed override bool IsContextfulImpl() => throw new NotSupportedException(SR.NotSupported_SignatureType);
192public sealed override bool IsEquivalentTo([NotNullWhen(true)] Type? other) => throw new NotSupportedException(SR.NotSupported_SignatureType);
193public sealed override bool IsInstanceOfType([NotNullWhen(true)] object? o) => throw new NotSupportedException(SR.NotSupported_SignatureType);
194protected sealed override bool IsMarshalByRefImpl() => throw new NotSupportedException(SR.NotSupported_SignatureType);
195public sealed override bool IsSecurityCritical => throw new NotSupportedException(SR.NotSupported_SignatureType);
196public sealed override bool IsSecuritySafeCritical => throw new NotSupportedException(SR.NotSupported_SignatureType);
197public sealed override bool IsSecurityTransparent => throw new NotSupportedException(SR.NotSupported_SignatureType);
199public sealed override bool IsSerializable => throw new NotSupportedException(SR.NotSupported_SignatureType);
200public sealed override bool IsSubclassOf(Type c) => throw new NotSupportedException(SR.NotSupported_SignatureType);
203public sealed override StructLayoutAttribute StructLayoutAttribute => throw new NotSupportedException(SR.NotSupported_SignatureType);
205public sealed override RuntimeTypeHandle TypeHandle => throw new NotSupportedException(SR.NotSupported_SignatureType);
src\System\Reflection\Emit\RuntimeGenericTypeParameterBuilder.cs (27)
85public override Guid GUID => throw new NotSupportedException();
88public override object InvokeMember(string name, BindingFlags invokeAttr, Binder? binder, object? target, object?[]? args, ParameterModifier[]? modifiers, CultureInfo? culture, string[]? namedParameters) { throw new NotSupportedException(); }
92public override RuntimeTypeHandle TypeHandle => throw new NotSupportedException();
103protected override ConstructorInfo GetConstructorImpl(BindingFlags bindingAttr, Binder? binder, CallingConventions callConvention, Type[] types, ParameterModifier[]? modifiers) { throw new NotSupportedException(); }
106public override ConstructorInfo[] GetConstructors(BindingFlags bindingAttr) { throw new NotSupportedException(); }
109protected override MethodInfo GetMethodImpl(string name, BindingFlags bindingAttr, Binder? binder, CallingConventions callConvention, Type[]? types, ParameterModifier[]? modifiers) { throw new NotSupportedException(); }
112public override MethodInfo[] GetMethods(BindingFlags bindingAttr) { throw new NotSupportedException(); }
115public override FieldInfo GetField(string name, BindingFlags bindingAttr) { throw new NotSupportedException(); }
118public override FieldInfo[] GetFields(BindingFlags bindingAttr) { throw new NotSupportedException(); }
122public override Type GetInterface(string name, bool ignoreCase) { throw new NotSupportedException(); }
125public override Type[] GetInterfaces() { throw new NotSupportedException(); }
128public override EventInfo GetEvent(string name, BindingFlags bindingAttr) { throw new NotSupportedException(); }
131public override EventInfo[] GetEvents() { throw new NotSupportedException(); }
134protected override PropertyInfo GetPropertyImpl(string name, BindingFlags bindingAttr, Binder? binder, Type? returnType, Type[]? types, ParameterModifier[]? modifiers) { throw new NotSupportedException(); }
137public override PropertyInfo[] GetProperties(BindingFlags bindingAttr) { throw new NotSupportedException(); }
140public override Type[] GetNestedTypes(BindingFlags bindingAttr) { throw new NotSupportedException(); }
143public override Type GetNestedType(string name, BindingFlags bindingAttr) { throw new NotSupportedException(); }
146public override MemberInfo[] GetMember(string name, MemberTypes type, BindingFlags bindingAttr) { throw new NotSupportedException(); }
148public override InterfaceMapping GetInterfaceMap([DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicMethods | DynamicallyAccessedMemberTypes.NonPublicMethods)] Type interfaceType) { throw new NotSupportedException(); }
151public override EventInfo[] GetEvents(BindingFlags bindingAttr) { throw new NotSupportedException(); }
154public override MemberInfo[] GetMembers(BindingFlags bindingAttr) { throw new NotSupportedException(); }
172public override Type GetElementType() { throw new NotSupportedException(); }
204public override bool IsAssignableFrom([NotNullWhen(true)] Type? c) { throw new NotSupportedException(); }
206public override bool IsSubclassOf(Type c) { throw new NotSupportedException(); }
210public override object[] GetCustomAttributes(bool inherit) { throw new NotSupportedException(); }
212public override object[] GetCustomAttributes(Type attributeType, bool inherit) { throw new NotSupportedException(); }
214public override bool IsDefined(Type attributeType, bool inherit) { throw new NotSupportedException(); }
System.Private.DataContractSerialization (55)
System.Private.Windows.Core (13)
System.Private.Windows.Core.Tests (18)
System.Private.Windows.Core.TestUtilities (2)
System.Private.Xml (109)
System\Xml\Serialization\Types.cs (9)
380throw new NotSupportedException(SR.Format(SR.XmlSerializerUnsupportedType, FullName));
789exception ??= new NotSupportedException(SR.Format(SR.XmlSerializerUnsupportedType, type.FullName));
807exception ??= new NotSupportedException(SR.Format(SR.XmlUnsupportedRank, type.FullName));
826exception ??= new NotSupportedException(SR.Format(SR.XmlSerializerUnsupportedType, type.FullName));
881exception = new NotSupportedException(SR.Format(SR.XmlUnsupportedInterface, type.FullName));
885exception = new NotSupportedException(SR.Format(SR.XmlUnsupportedInterfaceDetails, $"{memberInfo.DeclaringType!.FullName}.{memberInfo.Name}", type.FullName));
893exception ??= new NotSupportedException(SR.Format(SR.XmlSerializerUnsupportedType, type.FullName));
1337throw new NotSupportedException(SR.Format(SR.XmlUnsupportedIDictionary, type.FullName));
1341throw new NotSupportedException(SR.Format(SR.XmlUnsupportedIDictionaryDetails, memberInfo, type.FullName));
System.Private.Xml.Linq (5)
System.Reflection.Context (1)
System.Reflection.Emit (123)
System\Reflection\Emit\EnumBuilderImpl.cs (19)
107object?[]? args, ParameterModifier[]? modifiers, Globalization.CultureInfo? culture, string[]? namedParameters) => throw new NotSupportedException();
110CallingConventions callConvention, Type[] types, ParameterModifier[]? modifiers) => throw new NotSupportedException();
112public override ConstructorInfo[] GetConstructors(BindingFlags bindingAttr) => throw new NotSupportedException();
114public override EventInfo[] GetEvents() => throw new NotSupportedException();
116public override EventInfo[] GetEvents(BindingFlags bindingAttr) => throw new NotSupportedException();
118public override EventInfo? GetEvent(string name, BindingFlags bindingAttr) => throw new NotSupportedException();
120public override MethodInfo[] GetMethods(BindingFlags bindingAttr) => throw new NotSupportedException();
123CallingConventions callConvention, Type[]? types, ParameterModifier[]? modifiers) => throw new NotSupportedException();
125public override FieldInfo? GetField(string name, BindingFlags bindingAttr) => throw new NotSupportedException();
127public override FieldInfo[] GetFields(BindingFlags bindingAttr) => throw new NotSupportedException();
130public override Type? GetInterface(string name, bool ignoreCase) => throw new NotSupportedException();
132public override PropertyInfo[] GetProperties(BindingFlags bindingAttr) => throw new NotSupportedException();
135Type? returnType, Type[]? types, ParameterModifier[]? modifiers) => throw new NotSupportedException();
137public override Type[] GetNestedTypes(BindingFlags bindingAttr) => throw new NotSupportedException();
139public override Type? GetNestedType(string name, BindingFlags bindingAttr) => throw new NotSupportedException();
141public override MemberInfo[] GetMember(string name, MemberTypes type, BindingFlags bindingAttr) => throw new NotSupportedException();
143=> throw new NotSupportedException();
145public override MemberInfo[] GetMembers(BindingFlags bindingAttr) => throw new NotSupportedException();
146public override bool IsAssignableFrom([NotNullWhen(true)] Type? c) => throw new NotSupportedException();
System\Reflection\Emit\GenericTypeParameterBuilderImpl.cs (24)
89public override RuntimeTypeHandle TypeHandle => throw new NotSupportedException();
90public override Guid GUID => throw new NotSupportedException();
99public override object[] GetCustomAttributes(bool inherit) => throw new NotSupportedException();
100public override object[] GetCustomAttributes(Type attributeType, bool inherit) => throw new NotSupportedException();
101public override bool IsDefined(Type attributeType, bool inherit) => throw new NotSupportedException();
103protected override ConstructorInfo GetConstructorImpl(BindingFlags bindingAttr, Binder? binder, CallingConventions callConvention, Type[] types, ParameterModifier[]? modifiers) => throw new NotSupportedException();
105public override ConstructorInfo[] GetConstructors(BindingFlags bindingAttr) => throw new NotSupportedException();
107protected override MethodInfo GetMethodImpl(string name, BindingFlags bindingAttr, Binder? binder, CallingConventions callConvention, Type[]? types, ParameterModifier[]? modifiers) => throw new NotSupportedException();
109public override MethodInfo[] GetMethods(BindingFlags bindingAttr) => throw new NotSupportedException();
111public override FieldInfo GetField(string name, BindingFlags bindingAttr) => throw new NotSupportedException();
113public override FieldInfo[] GetFields(BindingFlags bindingAttr) => throw new NotSupportedException();
116public override Type GetInterface(string name, bool ignoreCase) => throw new NotSupportedException();
118public override Type[] GetInterfaces() => throw new NotSupportedException();
120public override EventInfo GetEvent(string name, BindingFlags bindingAttr) => throw new NotSupportedException();
122public override EventInfo[] GetEvents() => throw new NotSupportedException();
124protected override PropertyInfo GetPropertyImpl(string name, BindingFlags bindingAttr, Binder? binder, Type? returnType, Type[]? types, ParameterModifier[]? modifiers) => throw new NotSupportedException();
126public override PropertyInfo[] GetProperties(BindingFlags bindingAttr) => throw new NotSupportedException();
128public override Type[] GetNestedTypes(BindingFlags bindingAttr) => throw new NotSupportedException();
130public override Type GetNestedType(string name, BindingFlags bindingAttr) => throw new NotSupportedException();
132public override MemberInfo[] GetMember(string name, MemberTypes type, BindingFlags bindingAttr) => throw new NotSupportedException();
133public override InterfaceMapping GetInterfaceMap([DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicMethods | DynamicallyAccessedMemberTypes.NonPublicMethods)] Type interfaceType) => throw new NotSupportedException();
135public override EventInfo[] GetEvents(BindingFlags bindingAttr) => throw new NotSupportedException();
137public override MemberInfo[] GetMembers(BindingFlags bindingAttr) => throw new NotSupportedException();
142public override object InvokeMember(string name, BindingFlags invokeAttr, Binder? binder, object? target, object?[]? args, ParameterModifier[]? modifiers, CultureInfo? culture, string[]? namedParameters) => throw new NotSupportedException();
System.Reflection.Metadata (34)
System.Reflection.MetadataLoadContext (37)
System.Resources.Extensions (3)
System.Runtime.Caching (10)
System.Runtime.InteropServices (1)
System.Runtime.Numerics (3)
System.Security.Cryptography (43)
System.Security.Cryptography.Cose (1)
System.Security.Cryptography.Pkcs (1)
System.Security.Cryptography.Xml (8)
System.ServiceModel.Federation (9)
System.ServiceModel.Http (17)
System.ServiceModel.NetFramingBase (5)
System.ServiceModel.NetTcp (1)
System.ServiceModel.Primitives (121)
Internals\System\Xml\XmlMtomReader.cs (20)
2153get { throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.Format(SRP.SeekNotSupportedOnStream, GetType().FullName))); }
2158get { throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.Format(SRP.SeekNotSupportedOnStream, GetType().FullName))); }
2159set { throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.Format(SRP.SeekNotSupportedOnStream, GetType().FullName))); }
2164throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.Format(SRP.WriteNotSupportedOnStream, GetType().FullName)));
2174throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.Format(SRP.WriteNotSupportedOnStream, GetType().FullName)));
2179throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.Format(SRP.WriteNotSupportedOnStream, GetType().FullName)));
2201throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.Format(SRP.SeekNotSupportedOnStream, GetType().FullName)));
2206throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.Format(SRP.WriteNotSupportedOnStream, GetType().FullName)));
2211throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.Format(SRP.WriteNotSupportedOnStream, GetType().FullName)));
2872get { throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.Format(SRP.SeekNotSupportedOnStream, stream.GetType().FullName))); }
2877get { throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.Format(SRP.SeekNotSupportedOnStream, stream.GetType().FullName))); }
2878set { throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.Format(SRP.SeekNotSupportedOnStream, stream.GetType().FullName))); }
2884throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.Format(SRP.ReadNotSupportedOnStream, stream.GetType().FullName)));
2891throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.Format(SRP.WriteNotSupportedOnStream, stream.GetType().FullName)));
2902throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.Format(SRP.ReadNotSupportedOnStream, stream.GetType().FullName)));
2909throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.Format(SRP.WriteNotSupportedOnStream, stream.GetType().FullName)));
2920throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.Format(SRP.ReadNotSupportedOnStream, stream.GetType().FullName)));
3005throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.Format(SRP.SeekNotSupportedOnStream, stream.GetType().FullName)));
3010throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.Format(SRP.SeekNotSupportedOnStream, stream.GetType().FullName)));
3015throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.Format(SRP.WriteNotSupportedOnStream, stream.GetType().FullName)));
System.ServiceModel.Syndication (1)
System.ServiceModel.UnixDomainSocket (3)
System.Text.Encoding.CodePages (6)
System.Text.Json (20)
System\Text\Json\ThrowHelper.Serialization.cs (17)
34throw new NotSupportedException(SR.Format(SR.SerializationNotSupportedType, propertyType));
40throw new NotSupportedException(SR.Format(SR.TypeRequiresAsyncSerialization, propertyType));
46throw new NotSupportedException(SR.Format(SR.DictionaryKeyTypeNotSupported, keyType, converter.GetType()));
124throw new NotSupportedException(SR.ObjectCreationHandlingPropertyDoesNotSupportParameterizedConstructors);
446NotSupportedException ex = new NotSupportedException(
631throw new NotSupportedException(message, innerException);
657throw new NotSupportedException(message, innerException);
686ThrowNotSupportedException(ref state, reader, new NotSupportedException(message));
692ThrowNotSupportedException(ref state, reader, new NotSupportedException(SR.Format(SR.CannotPopulateCollection, type)));
855throw new NotSupportedException(SR.Format(SR.NoMetadataForType, type, resolver?.ToString() ?? "<null>"));
860return new NotSupportedException(SR.Format(SR.AmbiguousMetadataForType, type, match1, match2));
866throw new NotSupportedException(SR.Format(SR.ConstructorContainsNullParameterNames, declaringType));
895throw new NotSupportedException(SR.Format(SR.Polymorphism_DerivedConverterDoesNotSupportMetadata, derivedType));
901throw new NotSupportedException(SR.Format(SR.Polymorphism_DerivedConverterDoesNotSupportMetadata, derivedType));
907throw new NotSupportedException(SR.Format(SR.Polymorphism_RuntimeTypeNotSupported, runtimeType, baseType));
913throw new NotSupportedException(SR.Format(SR.Polymorphism_RuntimeTypeDiamondAmbiguity, runtimeType, derivedType1, derivedType2, baseType));
997throw new NotSupportedException(SR.JsonSchemaExporter_ReferenceHandlerPreserve_NotSupported);
System.Text.RegularExpressions (46)
System.Threading.Channels (1)
System.Threading.Tasks.Dataflow (10)
System.Threading.Tasks.Parallel (3)
System.Transactions.Local (2)
System.Windows.Controls.Ribbon (3)
System.Windows.Forms (255)
System.Windows.Forms.Analyzers (1)
System.Windows.Forms.Design (14)
System.Windows.Forms.Primitives (1)
System.Windows.Forms.Tests (11)
System.Windows.Forms.UI.IntegrationTests (1)
System.Windows.Input.Manipulations (1)
System.Windows.Presentation (1)
System.Xaml (16)
System.Xaml.Tests (1)
Templates.Blazor.Tests (2)
Templates.Blazor.WebAssembly.Auth.Tests (2)
Templates.Blazor.WebAssembly.Tests (2)
Templates.Mvc.Tests (2)
Templates.Tests (2)
Test.Utilities (102)
Text.Analyzers (105)
UnitTests.Common (1)
2279 references to NotSupportedException
Analyzer.Utilities.UnitTests (2)
Aspire.Hosting.Azure.Tests (15)
dotnet-svcutil-lib (4)
GenerateDocumentationAndConfigFiles (5)
InMemory.FunctionalTests (2)
Interop.FunctionalTests (2)
Metrics (6)
Metrics.Legacy (6)
Microsoft.AspNetCore.Authentication.Negotiate.Test (2)
Microsoft.AspNetCore.Components.Authorization.Tests (2)
Microsoft.AspNetCore.Components.Endpoints.Tests (1)
Microsoft.AspNetCore.Components.Server (1)
Microsoft.AspNetCore.Components.Tests (4)
Microsoft.AspNetCore.DataProtection (2)
Microsoft.AspNetCore.DataProtection.Tests (1)
Microsoft.AspNetCore.Hosting.Tests (6)
Microsoft.AspNetCore.Http.Abstractions.Tests (9)
Microsoft.AspNetCore.Http.Connections.Client (1)
Microsoft.AspNetCore.Http.Extensions (1)
Microsoft.AspNetCore.Http.Extensions.Tests (25)
Microsoft.AspNetCore.Http.Results.Tests (2)
Microsoft.AspNetCore.Http.Tests (4)
Microsoft.AspNetCore.Identity.Specification.Tests (5)
Microsoft.AspNetCore.Identity.Test (51)
UserManagerTest.cs (50)
884Assert.Throws<NotSupportedException>(() => manager.Users.Count());
895await Assert.ThrowsAsync<NotSupportedException>(() => manager.FindByEmailAsync(null));
896await Assert.ThrowsAsync<NotSupportedException>(() => manager.SetEmailAsync(null, null));
897await Assert.ThrowsAsync<NotSupportedException>(() => manager.GetEmailAsync(null));
898await Assert.ThrowsAsync<NotSupportedException>(() => manager.IsEmailConfirmedAsync(null));
899await Assert.ThrowsAsync<NotSupportedException>(() => manager.ConfirmEmailAsync(null, null));
922await Assert.ThrowsAsync<NotSupportedException>(async () => await manager.SetPhoneNumberAsync(null, null));
923await Assert.ThrowsAsync<NotSupportedException>(async () => await manager.ChangePhoneNumberAsync(null, null, null));
924await Assert.ThrowsAsync<NotSupportedException>(async () => await manager.GetPhoneNumberAsync(null));
948await Assert.ThrowsAsync<NotSupportedException>(
950await Assert.ThrowsAsync<NotSupportedException>(
977await Assert.ThrowsAsync<NotSupportedException>(() => manager.CreateAsync(null, null));
978await Assert.ThrowsAsync<NotSupportedException>(() => manager.ChangePasswordAsync(null, null, null));
979await Assert.ThrowsAsync<NotSupportedException>(() => manager.AddPasswordAsync(null, null));
980await Assert.ThrowsAsync<NotSupportedException>(() => manager.RemovePasswordAsync(null));
981await Assert.ThrowsAsync<NotSupportedException>(() => manager.CheckPasswordAsync(null, null));
982await Assert.ThrowsAsync<NotSupportedException>(() => manager.HasPasswordAsync(null));
1023await Assert.ThrowsAsync<NotSupportedException>(() => manager.UpdateSecurityStampAsync(null));
1024await Assert.ThrowsAsync<NotSupportedException>(() => manager.GetSecurityStampAsync(null));
1025await Assert.ThrowsAsync<NotSupportedException>(
1027await Assert.ThrowsAsync<NotSupportedException>(
1052await Assert.ThrowsAsync<NotSupportedException>(async () => await manager.AddLoginAsync(null, null));
1053await Assert.ThrowsAsync<NotSupportedException>(async () => await manager.RemoveLoginAsync(null, null, null));
1054await Assert.ThrowsAsync<NotSupportedException>(async () => await manager.GetLoginsAsync(null));
1055await Assert.ThrowsAsync<NotSupportedException>(async () => await manager.FindByLoginAsync(null, null));
1078await Assert.ThrowsAsync<NotSupportedException>(async () => await manager.AddClaimAsync(null, null));
1079await Assert.ThrowsAsync<NotSupportedException>(async () => await manager.ReplaceClaimAsync(null, null, null));
1080await Assert.ThrowsAsync<NotSupportedException>(async () => await manager.RemoveClaimAsync(null, null));
1081await Assert.ThrowsAsync<NotSupportedException>(async () => await manager.GetClaimsAsync(null));
1238await Assert.ThrowsAsync<NotSupportedException>(async () => await manager.GetTwoFactorEnabledAsync(null));
1240Assert.ThrowsAsync<NotSupportedException>(async () => await manager.SetTwoFactorEnabledAsync(null, true));
1248await Assert.ThrowsAsync<NotSupportedException>(async () => await manager.GetLockoutEnabledAsync(null));
1249await Assert.ThrowsAsync<NotSupportedException>(async () => await manager.SetLockoutEnabledAsync(null, true));
1250await Assert.ThrowsAsync<NotSupportedException>(async () => await manager.AccessFailedAsync(null));
1251await Assert.ThrowsAsync<NotSupportedException>(async () => await manager.IsLockedOutAsync(null));
1252await Assert.ThrowsAsync<NotSupportedException>(async () => await manager.ResetAccessFailedCountAsync(null));
1253await Assert.ThrowsAsync<NotSupportedException>(async () => await manager.GetAccessFailedCountAsync(null));
1261await Assert.ThrowsAsync<NotSupportedException>(async () => await manager.AddToRoleAsync(null, "bogus"));
1262await Assert.ThrowsAsync<NotSupportedException>(async () => await manager.AddToRolesAsync(null, null));
1263await Assert.ThrowsAsync<NotSupportedException>(async () => await manager.GetRolesAsync(null));
1264await Assert.ThrowsAsync<NotSupportedException>(async () => await manager.RemoveFromRoleAsync(null, "bogus"));
1265await Assert.ThrowsAsync<NotSupportedException>(async () => await manager.RemoveFromRolesAsync(null, null));
1266await Assert.ThrowsAsync<NotSupportedException>(async () => await manager.IsInRoleAsync(null, "bogus"));
1275await VerifyException<NotSupportedException>(async () => await manager.GetAuthenticationTokenAsync(null, null, null), error);
1276await VerifyException<NotSupportedException>(async () => await manager.SetAuthenticationTokenAsync(null, null, null, null), error);
1277await VerifyException<NotSupportedException>(async () => await manager.RemoveAuthenticationTokenAsync(null, null, null), error);
1286await VerifyException<NotSupportedException>(async () => await manager.GetAuthenticatorKeyAsync(null), error);
1287await VerifyException<NotSupportedException>(async () => await manager.ResetAuthenticatorKeyAsync(null), error);
1296await VerifyException<NotSupportedException>(async () => await manager.RedeemTwoFactorRecoveryCodeAsync(null, null), error);
1297await VerifyException<NotSupportedException>(async () => await manager.GenerateNewTwoFactorRecoveryCodesAsync(null, 10), error);
Microsoft.AspNetCore.Mvc.Abstractions.Test (6)
Microsoft.AspNetCore.Mvc.Core.Test (2)
Microsoft.AspNetCore.Mvc.IntegrationTests (2)
Microsoft.AspNetCore.Rewrite.Tests (2)
Microsoft.AspNetCore.Routing.Tests (2)
Microsoft.AspNetCore.Server.Kestrel.Core (1)
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (23)
Microsoft.AspNetCore.Shared.Tests (3)
Microsoft.AspNetCore.SignalR.Client.Tests (2)
Microsoft.AspNetCore.SignalR.Tests (5)
Microsoft.AspNetCore.TestHost (1)
Microsoft.AspNetCore.TestHost.Tests (3)
Microsoft.AspNetCore.Tests (38)
Microsoft.Build.Framework (1)
Microsoft.Build.Tasks.CodeAnalysis (1)
Microsoft.Build.Tasks.CodeAnalysis.Sdk (2)
Microsoft.CodeAnalysis (17)
Microsoft.CodeAnalysis.Analyzers (6)
Microsoft.CodeAnalysis.AnalyzerUtilities (6)
Microsoft.CodeAnalysis.BannedApiAnalyzers (6)
Microsoft.CodeAnalysis.CodeStyle (6)
Microsoft.CodeAnalysis.CSharp (1)
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (3)
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (4)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (2)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (10)
Microsoft.CodeAnalysis.Debugging.Package (1)
Microsoft.CodeAnalysis.EditorFeatures (1)
Microsoft.CodeAnalysis.ExpressionEvaluator.FunctionResolver (2)
Microsoft.CodeAnalysis.ExpressionEvaluator.FunctionResolver.UnitTests (1)
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider (1)
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider.Utilities (1)
Microsoft.CodeAnalysis.Extensions.Package (1)
Microsoft.CodeAnalysis.InteractiveHost (3)
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (6)
Microsoft.CodeAnalysis.PooledObjects.Package (1)
Microsoft.CodeAnalysis.PublicApiAnalyzers (6)
Microsoft.CodeAnalysis.ResxSourceGenerator (6)
Microsoft.CodeAnalysis.Scripting (4)
Microsoft.CodeAnalysis.UnitTests (84)
Microsoft.CodeAnalysis.Workspaces (11)
Microsoft.CodeAnalysis.Workspaces.MSBuild (1)
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (3)
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (2)
Microsoft.CodeAnalysis.Workspaces.UnitTests (14)
Microsoft.CommonLanguageServerProtocol.Framework.Package (1)
Microsoft.Data.Analysis.Tests (86)
Microsoft.DotNet.Build.Tasks.Feed (1)
Microsoft.DotNet.Build.Tasks.Installers (1)
Microsoft.Extensions.AI.Abstractions (2)
Microsoft.Extensions.AI.Abstractions.Tests (4)
Microsoft.Extensions.AI.AzureAIInference (1)
Microsoft.Extensions.AI.OpenAI (2)
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (3)
Microsoft.Extensions.Http.Diagnostics.Tests (4)
Microsoft.Extensions.Identity.Core (2)
Microsoft.Extensions.Primitives (1)
Microsoft.Gen.Metrics.Unit.Tests (1)
Microsoft.Gen.MetricsReports.Unit.Tests (1)
Microsoft.JSInterop.Tests (4)
Microsoft.Maui.Controls (1)
Microsoft.ML.AutoML (1)
Microsoft.ML.AutoML.Tests (2)
Microsoft.ML.Core (2)
Microsoft.ML.Core.Tests (2)
UnitTests\TestResourceDownload.cs (2)
61await Assert.ThrowsAsync<NotSupportedException>(() => ResourceManagerUtils.Instance.EnsureResourceAsync(env, ch, "Image/ResNet_18_Updated.model", fileName, saveToDir, 10 * 1000));
90await Assert.ThrowsAsync<NotSupportedException>(() => ResourceManagerUtils.Instance.EnsureResourceAsync(env, ch, "Image/ResNet_18_Updated.model", fileName, saveToDir, 10 * 1000));
Microsoft.ML.TorchSharp (1)
Microsoft.Net.Http.Headers.Tests (3)
Microsoft.VisualBasic.Core (5)
mscorlib (1)
netstandard (1)
PresentationBuildTasks (2)
PresentationCore (82)
PresentationCore.Tests (16)
System\Windows\DurationConverter.Tests.cs (2)
88Assert.Throws<NotSupportedException>(() => converter.ConvertTo(null, null, new Duration(new TimeSpan(17, 22, 10, 15, 457, 123)), destinationType));
145Assert.Throws<NotSupportedException>(() => converter.ConvertFrom(null, culture, value));
PresentationFramework (26)
PresentationFramework.Tests (2)
PresentationUI (2)
Roslyn.Diagnostics.Analyzers (6)
Shared.Tests (7)
Sockets.FunctionalTests (2)
System.Collections.Concurrent (7)
System.Collections.Immutable (40)
System.ComponentModel.Annotations (2)
System.Data.Common (7)
System.Data.Odbc (4)
System.Drawing.Common (1)
System.Drawing.Common.Tests (78)
System\Drawing\IconConverterTests.cs (26)
112Assert.Throws<NotSupportedException>(() => _icoConv.ConvertFrom("System.Drawing.String"));
113Assert.Throws<NotSupportedException>(() => _icoConv.ConvertFrom(null, CultureInfo.InvariantCulture, "System.Drawing.String"));
114Assert.Throws<NotSupportedException>(() => _icoConv.ConvertFrom(null, CultureInfo.InvariantCulture, new Bitmap(20, 20)));
115Assert.Throws<NotSupportedException>(() => _icoConv.ConvertFrom(null, CultureInfo.InvariantCulture, new Point(10, 10)));
116Assert.Throws<NotSupportedException>(() => _icoConv.ConvertFrom(null, CultureInfo.InvariantCulture, new SizeF(10, 10)));
117Assert.Throws<NotSupportedException>(() => _icoConv.ConvertFrom(null, CultureInfo.InvariantCulture, new object()));
124Assert.Throws<NotSupportedException>(() => _icoConvFrmTD.ConvertFrom("System.Drawing.String"));
125Assert.Throws<NotSupportedException>(() => _icoConvFrmTD.ConvertFrom(null, CultureInfo.InvariantCulture, "System.Drawing.String"));
126Assert.Throws<NotSupportedException>(() => _icoConvFrmTD.ConvertFrom(null, CultureInfo.InvariantCulture, new Bitmap(20, 20)));
127Assert.Throws<NotSupportedException>(() => _icoConvFrmTD.ConvertFrom(null, CultureInfo.InvariantCulture, new Point(10, 10)));
128Assert.Throws<NotSupportedException>(() => _icoConvFrmTD.ConvertFrom(null, CultureInfo.InvariantCulture, new SizeF(10, 10)));
129Assert.Throws<NotSupportedException>(() => _icoConvFrmTD.ConvertFrom(null, CultureInfo.InvariantCulture, new object()));
144Assert.Throws<NotSupportedException>(() => _icoConv.ConvertTo(null, CultureInfo.InvariantCulture, _icon, typeof(Rectangle)));
145Assert.Throws<NotSupportedException>(() => _icoConv.ConvertTo(null, CultureInfo.InvariantCulture, _icon, _icon.GetType()));
146Assert.Throws<NotSupportedException>(() => _icoConv.ConvertTo(null, CultureInfo.InvariantCulture, _icon, typeof(Size)));
147Assert.Throws<NotSupportedException>(() => _icoConv.ConvertTo(null, CultureInfo.InvariantCulture, _icon, typeof(Point)));
148Assert.Throws<NotSupportedException>(() => _icoConv.ConvertTo(null, CultureInfo.InvariantCulture, _icon, typeof(Metafile)));
149Assert.Throws<NotSupportedException>(() => _icoConv.ConvertTo(null, CultureInfo.InvariantCulture, _icon, typeof(object)));
150Assert.Throws<NotSupportedException>(() => _icoConv.ConvertTo(null, CultureInfo.InvariantCulture, _icon, typeof(int)));
161Assert.Throws<NotSupportedException>(() => _icoConvFrmTD.ConvertTo(null, CultureInfo.InvariantCulture, _icon, typeof(Rectangle)));
162Assert.Throws<NotSupportedException>(() => _icoConvFrmTD.ConvertTo(null, CultureInfo.InvariantCulture, _icon, _icon.GetType()));
163Assert.Throws<NotSupportedException>(() => _icoConvFrmTD.ConvertTo(null, CultureInfo.InvariantCulture, _icon, typeof(Size)));
164Assert.Throws<NotSupportedException>(() => _icoConvFrmTD.ConvertTo(null, CultureInfo.InvariantCulture, _icon, typeof(Point)));
165Assert.Throws<NotSupportedException>(() => _icoConvFrmTD.ConvertTo(null, CultureInfo.InvariantCulture, _icon, typeof(Metafile)));
166Assert.Throws<NotSupportedException>(() => _icoConvFrmTD.ConvertTo(null, CultureInfo.InvariantCulture, _icon, typeof(object)));
167Assert.Throws<NotSupportedException>(() => _icoConvFrmTD.ConvertTo(null, CultureInfo.InvariantCulture, _icon, typeof(int)));
System\Drawing\ImageConverterTests.cs (28)
139Assert.Throws<NotSupportedException>(() => _imgConv.ConvertFrom("System.Drawing.String"));
140Assert.Throws<NotSupportedException>(() => _imgConv.ConvertFrom(null, CultureInfo.InvariantCulture, "System.Drawing.String"));
141Assert.Throws<NotSupportedException>(() => _imgConv.ConvertFrom(null, CultureInfo.InvariantCulture, new Bitmap(20, 20)));
142Assert.Throws<NotSupportedException>(() => _imgConv.ConvertFrom(null, CultureInfo.InvariantCulture, new Point(10, 10)));
143Assert.Throws<NotSupportedException>(() => _imgConv.ConvertFrom(null, CultureInfo.InvariantCulture, new SizeF(10, 10)));
144Assert.Throws<NotSupportedException>(() => _imgConv.ConvertFrom(null, CultureInfo.InvariantCulture, new object()));
146Assert.Throws<NotSupportedException>(() => _imgConvFrmTD.ConvertFrom("System.Drawing.String"));
147Assert.Throws<NotSupportedException>(() => _imgConvFrmTD.ConvertFrom(null, CultureInfo.InvariantCulture, "System.Drawing.String"));
148Assert.Throws<NotSupportedException>(() => _imgConvFrmTD.ConvertFrom(null, CultureInfo.InvariantCulture, new Bitmap(20, 20)));
149Assert.Throws<NotSupportedException>(() => _imgConvFrmTD.ConvertFrom(null, CultureInfo.InvariantCulture, new Point(10, 10)));
150Assert.Throws<NotSupportedException>(() => _imgConvFrmTD.ConvertFrom(null, CultureInfo.InvariantCulture, new SizeF(10, 10)));
151Assert.Throws<NotSupportedException>(() => _imgConvFrmTD.ConvertFrom(null, CultureInfo.InvariantCulture, new object()));
197Assert.Throws<NotSupportedException>(() => _imgConv.ConvertTo(null, CultureInfo.InvariantCulture, _image, typeof(Rectangle)));
198Assert.Throws<NotSupportedException>(() => _imgConv.ConvertTo(null, CultureInfo.InvariantCulture, _image, _image.GetType()));
199Assert.Throws<NotSupportedException>(() => _imgConv.ConvertTo(null, CultureInfo.InvariantCulture, _image, typeof(Size)));
200Assert.Throws<NotSupportedException>(() => _imgConv.ConvertTo(null, CultureInfo.InvariantCulture, _image, typeof(Bitmap)));
201Assert.Throws<NotSupportedException>(() => _imgConv.ConvertTo(null, CultureInfo.InvariantCulture, _image, typeof(Point)));
202Assert.Throws<NotSupportedException>(() => _imgConv.ConvertTo(null, CultureInfo.InvariantCulture, _image, typeof(Metafile)));
203Assert.Throws<NotSupportedException>(() => _imgConv.ConvertTo(null, CultureInfo.InvariantCulture, _image, typeof(object)));
204Assert.Throws<NotSupportedException>(() => _imgConv.ConvertTo(null, CultureInfo.InvariantCulture, _image, typeof(int)));
206Assert.Throws<NotSupportedException>(() => _imgConvFrmTD.ConvertTo(null, CultureInfo.InvariantCulture, _image, typeof(Rectangle)));
207Assert.Throws<NotSupportedException>(() => _imgConvFrmTD.ConvertTo(null, CultureInfo.InvariantCulture, _image, _image.GetType()));
208Assert.Throws<NotSupportedException>(() => _imgConvFrmTD.ConvertTo(null, CultureInfo.InvariantCulture, _image, typeof(Size)));
209Assert.Throws<NotSupportedException>(() => _imgConvFrmTD.ConvertTo(null, CultureInfo.InvariantCulture, _image, typeof(Bitmap)));
210Assert.Throws<NotSupportedException>(() => _imgConvFrmTD.ConvertTo(null, CultureInfo.InvariantCulture, _image, typeof(Point)));
211Assert.Throws<NotSupportedException>(() => _imgConvFrmTD.ConvertTo(null, CultureInfo.InvariantCulture, _image, typeof(Metafile)));
212Assert.Throws<NotSupportedException>(() => _imgConvFrmTD.ConvertTo(null, CultureInfo.InvariantCulture, _image, typeof(object)));
213Assert.Throws<NotSupportedException>(() => _imgConvFrmTD.ConvertTo(null, CultureInfo.InvariantCulture, _image, typeof(int)));
System\Drawing\ImageFormatConverterTests.cs (16)
72Assert.Throws<NotSupportedException>(() => _imgFmtConv.ConvertFrom(null, CultureInfo.InvariantCulture, ImageFormat.Bmp));
73Assert.Throws<NotSupportedException>(() => _imgFmtConv.ConvertFrom(null, CultureInfo.InvariantCulture, ImageFormat.Bmp.Guid));
74Assert.Throws<NotSupportedException>(() => _imgFmtConv.ConvertFrom(null, CultureInfo.InvariantCulture, new object()));
75Assert.Throws<NotSupportedException>(() => _imgFmtConv.ConvertFrom(null, CultureInfo.InvariantCulture, 10));
77Assert.Throws<NotSupportedException>(() => _imgFmtConvFrmTD.ConvertFrom(null, CultureInfo.InvariantCulture, ImageFormat.Bmp));
78Assert.Throws<NotSupportedException>(() => _imgFmtConvFrmTD.ConvertFrom(null, CultureInfo.InvariantCulture, ImageFormat.Bmp.Guid));
79Assert.Throws<NotSupportedException>(() => _imgFmtConvFrmTD.ConvertFrom(null, CultureInfo.InvariantCulture, new object()));
80Assert.Throws<NotSupportedException>(() => _imgFmtConvFrmTD.ConvertFrom(null, CultureInfo.InvariantCulture, 10));
146Assert.Throws<NotSupportedException>(() => _imgFmtConv.ConvertTo(null, CultureInfo.InvariantCulture, _imageFmt, typeof(ImageFormat)));
147Assert.Throws<NotSupportedException>(() => _imgFmtConv.ConvertTo(null, CultureInfo.InvariantCulture, _imageFmt, typeof(Guid)));
148Assert.Throws<NotSupportedException>(() => _imgFmtConv.ConvertTo(null, CultureInfo.InvariantCulture, _imageFmt, typeof(object)));
149Assert.Throws<NotSupportedException>(() => _imgFmtConv.ConvertTo(null, CultureInfo.InvariantCulture, _imageFmt, typeof(int)));
151Assert.Throws<NotSupportedException>(() => _imgFmtConvFrmTD.ConvertTo(null, CultureInfo.InvariantCulture, _imageFmt, typeof(ImageFormat)));
152Assert.Throws<NotSupportedException>(() => _imgFmtConvFrmTD.ConvertTo(null, CultureInfo.InvariantCulture, _imageFmt, typeof(Guid)));
153Assert.Throws<NotSupportedException>(() => _imgFmtConvFrmTD.ConvertTo(null, CultureInfo.InvariantCulture, _imageFmt, typeof(object)));
154Assert.Throws<NotSupportedException>(() => _imgFmtConvFrmTD.ConvertTo(null, CultureInfo.InvariantCulture, _imageFmt, typeof(int)));
System\Drawing\Printing\MarginsConverterTests.cs (6)
109Assert.Throws<NotSupportedException>(() => mc.ConvertFrom(context, null, null));
110Assert.Throws<NotSupportedException>(() => mc.ConvertFrom(context, culture, null));
111Assert.Throws<NotSupportedException>(() => mc.ConvertFrom(context, culture, Guid.NewGuid()));
139Assert.Throws<NotSupportedException>(() => mc.ConvertTo(context, culture, new object(), typeof(object)));
140Assert.Throws<NotSupportedException>(() => mc.ConvertTo(context, culture, 12, typeof(int)));
141Assert.Throws<NotSupportedException>(() => mc.ConvertTo(context, culture, guid, typeof(Guid)));
System.Formats.Nrbf (2)
System.IO.Compression (10)
System.IO.Compression.Brotli (9)
System.IO.Compression.ZipFile (46)
System.IO.Hashing (2)
System.IO.Packaging (1)
System.IO.Pipelines (1)
System.Linq.Expressions (6)
System.Linq.Parallel (42)
System.Net.Quic (8)
System.Net.Requests (1)
System.Net.Sockets (4)
System.Net.WebClient (1)
System.Numerics.Tensors (2)
System.Private.CoreLib (597)
System.Private.Windows.Core (17)
System.Private.Windows.Core.Tests (30)
System.Private.Windows.Core.TestUtilities (1)
System.Private.Xml (5)
System.Reflection.DispatchProxy (1)
System.Reflection.Metadata (3)
System.Runtime (1)
System.Security.Cryptography (23)
System.Security.Cryptography.ProtectedData (6)
System.Security.Cryptography.Xml (1)
System.Text.Json (68)
System.Text.RegularExpressions (2)
System.Threading.Channels (1)
System.Threading.Tasks.Dataflow (1)
System.Transactions.Local (1)
System.Windows.Controls.Ribbon (2)
System.Windows.Forms (17)
System.Windows.Forms.Design.Tests (8)
System.Windows.Forms.Tests (277)
System.Xaml (2)
System.Xaml.Tests (54)
System\Xaml\Replacements\EventConverterTests.cs (7)
89Assert.Throws<NotSupportedException>(() => converter.ConvertFrom(context, null, "value"));
124Assert.Throws<NotSupportedException>(() => converter.ConvertFrom(context, null, "value"));
132Assert.Throws<NotSupportedException>(() => converter.ConvertFrom("value"));
142Assert.Throws<NotSupportedException>(() => converter.ConvertFrom(value!));
143Assert.Throws<NotSupportedException>(() => converter.ConvertFrom(new CustomTypeDescriptorContext(), null, value!));
175Assert.Throws<NotSupportedException>(() => converter.ConvertTo(typeof(int), destinationType));
176Assert.Throws<NotSupportedException>(() => converter.ConvertTo(new CustomTypeDescriptorContext(), null, typeof(int), destinationType));
System\Xaml\Schema\XamlTypeTypeConverterTests.cs (7)
136Assert.Throws<NotSupportedException>(() => converter.ConvertFrom(context, null, "value"));
170Assert.Throws<NotSupportedException>(() => converter.ConvertFrom(context, null, "prefix:namespace"));
177Assert.Throws<NotSupportedException>(() => converter.ConvertFrom("value"));
186Assert.Throws<NotSupportedException>(() => converter.ConvertFrom(value!));
187Assert.Throws<NotSupportedException>(() => converter.ConvertFrom(new CustomTypeDescriptorContext(), null, value));
268Assert.Throws<NotSupportedException>(() => converter.ConvertTo(type, destinationType));
269Assert.Throws<NotSupportedException>(() => converter.ConvertTo(new CustomTypeDescriptorContext(), null, type, destinationType));
Test.Utilities (5)
Text.Analyzers (6)
WindowsBase.Tests (134)
System\Windows\DependencyPropertyTests.cs (10)
236Assert.Throws<NotSupportedException>(() => DependencyProperty.Register(MethodBase.GetCurrentMethod()!.Name, typeof(void), typeof(DependencyPropertyTests)));
237Assert.Throws<NotSupportedException>(() => DependencyProperty.Register(MethodBase.GetCurrentMethod()!.Name, typeof(void), typeof(DependencyPropertyTests), new PropertyMetadata()));
238Assert.Throws<NotSupportedException>(() => DependencyProperty.Register(MethodBase.GetCurrentMethod()!.Name, typeof(void), typeof(DependencyPropertyTests), new PropertyMetadata(), value => true));
553Assert.Throws<NotSupportedException>(() => DependencyProperty.RegisterAttached(MethodBase.GetCurrentMethod()!.Name, typeof(void), typeof(DependencyPropertyTests)));
554Assert.Throws<NotSupportedException>(() => DependencyProperty.RegisterAttached(MethodBase.GetCurrentMethod()!.Name, typeof(void), typeof(DependencyPropertyTests), new PropertyMetadata()));
555Assert.Throws<NotSupportedException>(() => DependencyProperty.RegisterAttached(MethodBase.GetCurrentMethod()!.Name, typeof(void), typeof(DependencyPropertyTests), new PropertyMetadata(), value => true));
836Assert.Throws<NotSupportedException>(() => DependencyProperty.RegisterReadOnly(MethodBase.GetCurrentMethod()!.Name, typeof(void), typeof(DependencyObject), new PropertyMetadata()));
837Assert.Throws<NotSupportedException>(() => DependencyProperty.RegisterReadOnly(MethodBase.GetCurrentMethod()!.Name, typeof(void), typeof(DependencyObject), new PropertyMetadata(), value => true));
1131Assert.Throws<NotSupportedException>(() => DependencyProperty.RegisterAttachedReadOnly(MethodBase.GetCurrentMethod()!.Name, typeof(void), typeof(DependencyPropertyTests), new PropertyMetadata()));
1132Assert.Throws<NotSupportedException>(() => DependencyProperty.RegisterAttachedReadOnly(MethodBase.GetCurrentMethod()!.Name, typeof(void), typeof(DependencyPropertyTests), new PropertyMetadata(), value => true));
System\Windows\ExpressionConverterTests.cs (6)
54Assert.Throws<NotSupportedException>(() => converter.ConvertTo(value, destinationType));
55Assert.Throws<NotSupportedException>(() => converter.ConvertTo(null, null, value, destinationType));
56Assert.Throws<NotSupportedException>(() => converter.ConvertTo(new CustomTypeDescriptorContext(), CultureInfo.InvariantCulture, value, destinationType));
103Assert.Throws<NotSupportedException>(() => converter.ConvertFrom(value));
104Assert.Throws<NotSupportedException>(() => converter.ConvertFrom(null, null, value));
105Assert.Throws<NotSupportedException>(() => converter.ConvertFrom(new CustomTypeDescriptorContext(), CultureInfo.InvariantCulture, value));
System\Windows\Input\KeyConverterTests.cs (15)
154Assert.Throws<NotSupportedException>(() => converter.ConvertTo(value, typeof(string)));
155Assert.Throws<NotSupportedException>(() => converter.ConvertTo(new CustomTypeDescriptorContext(), null, value, typeof(string)));
156Assert.Throws<NotSupportedException>(() => converter.ConvertTo(new CustomTypeDescriptorContext(), CultureInfo.InvariantCulture, value, typeof(string)));
167Assert.Throws<NotSupportedException>(() => converter.ConvertTo(value, typeof(string)));
168Assert.Throws<NotSupportedException>(() => converter.ConvertTo(new CustomTypeDescriptorContext(), null, value, typeof(string)));
169Assert.Throws<NotSupportedException>(() => converter.ConvertTo(new CustomTypeDescriptorContext(), CultureInfo.InvariantCulture, value, typeof(string)));
204Assert.Throws<NotSupportedException>(() => converter.ConvertTo(value, destinationType));
205Assert.Throws<NotSupportedException>(() => converter.ConvertTo(null, null, value, destinationType));
206Assert.Throws<NotSupportedException>(() => converter.ConvertTo(new CustomTypeDescriptorContext(), CultureInfo.InvariantCulture, value, destinationType));
378Assert.Throws<NotSupportedException>(() => converter.ConvertFrom(null!));
379Assert.Throws<NotSupportedException>(() => converter.ConvertFrom(null, null, null));
380Assert.Throws<NotSupportedException>(() => converter.ConvertFrom(new CustomTypeDescriptorContext(), CultureInfo.InvariantCulture, null));
418Assert.Throws<NotSupportedException>(() => converter.ConvertFrom(value));
419Assert.Throws<NotSupportedException>(() => converter.ConvertFrom(null, null, value));
420Assert.Throws<NotSupportedException>(() => converter.ConvertFrom(new CustomTypeDescriptorContext(), CultureInfo.InvariantCulture, value));
System\Windows\Input\ModifierKeysConverterTests.cs (12)
170Assert.Throws<NotSupportedException>(() => converter.ConvertTo(value, destinationType));
171Assert.Throws<NotSupportedException>(() => converter.ConvertTo(null, null, value, destinationType));
172Assert.Throws<NotSupportedException>(() => converter.ConvertTo(new CustomTypeDescriptorContext(), CultureInfo.InvariantCulture, value, destinationType));
256Assert.Throws<NotSupportedException>(() => converter.ConvertFrom(null!));
257Assert.Throws<NotSupportedException>(() => converter.ConvertFrom(null, null, null));
258Assert.Throws<NotSupportedException>(() => converter.ConvertFrom(new CustomTypeDescriptorContext(), CultureInfo.InvariantCulture, null));
275Assert.Throws<NotSupportedException>(() => converter.ConvertFrom(value));
276Assert.Throws<NotSupportedException>(() => converter.ConvertFrom(null, null, value));
277Assert.Throws<NotSupportedException>(() => converter.ConvertFrom(new CustomTypeDescriptorContext(), CultureInfo.InvariantCulture, value));
292Assert.Throws<NotSupportedException>(() => converter.ConvertFrom(value));
293Assert.Throws<NotSupportedException>(() => converter.ConvertFrom(null, null, value));
294Assert.Throws<NotSupportedException>(() => converter.ConvertFrom(new CustomTypeDescriptorContext(), CultureInfo.InvariantCulture, value));
System\Windows\Int32RectConverterTests.cs (9)
80Assert.Throws<NotSupportedException>(() => converter.ConvertTo(value, destinationType));
81Assert.Throws<NotSupportedException>(() => converter.ConvertTo(null, null, value, destinationType));
82Assert.Throws<NotSupportedException>(() => converter.ConvertTo(new CustomTypeDescriptorContext(), CultureInfo.InvariantCulture, value, destinationType));
132Assert.Throws<NotSupportedException>(() => converter.ConvertFrom(null!));
133Assert.Throws<NotSupportedException>(() => converter.ConvertFrom(null, null, null));
134Assert.Throws<NotSupportedException>(() => converter.ConvertFrom(new CustomTypeDescriptorContext(), CultureInfo.InvariantCulture, null));
168Assert.Throws<NotSupportedException>(() => converter.ConvertFrom(value));
169Assert.Throws<NotSupportedException>(() => converter.ConvertFrom(null, null, value));
170Assert.Throws<NotSupportedException>(() => converter.ConvertFrom(new CustomTypeDescriptorContext(), CultureInfo.InvariantCulture, value));
System\Windows\Media\MatrixConverterTests.cs (9)
80Assert.Throws<NotSupportedException>(() => converter.ConvertTo(value, destinationType));
81Assert.Throws<NotSupportedException>(() => converter.ConvertTo(null, null, value, destinationType));
82Assert.Throws<NotSupportedException>(() => converter.ConvertTo(new CustomTypeDescriptorContext(), CultureInfo.InvariantCulture, value, destinationType));
132Assert.Throws<NotSupportedException>(() => converter.ConvertFrom(null!));
133Assert.Throws<NotSupportedException>(() => converter.ConvertFrom(null, null, null));
134Assert.Throws<NotSupportedException>(() => converter.ConvertFrom(new CustomTypeDescriptorContext(), CultureInfo.InvariantCulture, null));
168Assert.Throws<NotSupportedException>(() => converter.ConvertFrom(value));
169Assert.Throws<NotSupportedException>(() => converter.ConvertFrom(null, null, value));
170Assert.Throws<NotSupportedException>(() => converter.ConvertFrom(new CustomTypeDescriptorContext(), CultureInfo.InvariantCulture, value));
System\Windows\PointConverterTests.cs (9)
80Assert.Throws<NotSupportedException>(() => converter.ConvertTo(value, destinationType));
81Assert.Throws<NotSupportedException>(() => converter.ConvertTo(null, null, value, destinationType));
82Assert.Throws<NotSupportedException>(() => converter.ConvertTo(new CustomTypeDescriptorContext(), CultureInfo.InvariantCulture, value, destinationType));
132Assert.Throws<NotSupportedException>(() => converter.ConvertFrom(null!));
133Assert.Throws<NotSupportedException>(() => converter.ConvertFrom(null, null, null));
134Assert.Throws<NotSupportedException>(() => converter.ConvertFrom(new CustomTypeDescriptorContext(), CultureInfo.InvariantCulture, null));
168Assert.Throws<NotSupportedException>(() => converter.ConvertFrom(value));
169Assert.Throws<NotSupportedException>(() => converter.ConvertFrom(null, null, value));
170Assert.Throws<NotSupportedException>(() => converter.ConvertFrom(new CustomTypeDescriptorContext(), CultureInfo.InvariantCulture, value));
System\Windows\RectConverterTests.cs (9)
80Assert.Throws<NotSupportedException>(() => converter.ConvertTo(value, destinationType));
81Assert.Throws<NotSupportedException>(() => converter.ConvertTo(null, null, value, destinationType));
82Assert.Throws<NotSupportedException>(() => converter.ConvertTo(new CustomTypeDescriptorContext(), CultureInfo.InvariantCulture, value, destinationType));
132Assert.Throws<NotSupportedException>(() => converter.ConvertFrom(null!));
133Assert.Throws<NotSupportedException>(() => converter.ConvertFrom(null, null, null));
134Assert.Throws<NotSupportedException>(() => converter.ConvertFrom(new CustomTypeDescriptorContext(), CultureInfo.InvariantCulture, null));
178Assert.Throws<NotSupportedException>(() => converter.ConvertFrom(value));
179Assert.Throws<NotSupportedException>(() => converter.ConvertFrom(null, null, value));
180Assert.Throws<NotSupportedException>(() => converter.ConvertFrom(new CustomTypeDescriptorContext(), CultureInfo.InvariantCulture, value));
System\Windows\SizeConverterTests.cs (9)
80Assert.Throws<NotSupportedException>(() => converter.ConvertTo(value, destinationType));
81Assert.Throws<NotSupportedException>(() => converter.ConvertTo(null, null, value, destinationType));
82Assert.Throws<NotSupportedException>(() => converter.ConvertTo(new CustomTypeDescriptorContext(), CultureInfo.InvariantCulture, value, destinationType));
132Assert.Throws<NotSupportedException>(() => converter.ConvertFrom(null!));
133Assert.Throws<NotSupportedException>(() => converter.ConvertFrom(null, null, null));
134Assert.Throws<NotSupportedException>(() => converter.ConvertFrom(new CustomTypeDescriptorContext(), CultureInfo.InvariantCulture, null));
178Assert.Throws<NotSupportedException>(() => converter.ConvertFrom(value));
179Assert.Throws<NotSupportedException>(() => converter.ConvertFrom(null, null, value));
180Assert.Throws<NotSupportedException>(() => converter.ConvertFrom(new CustomTypeDescriptorContext(), CultureInfo.InvariantCulture, value));
System\Windows\VectorConverterTests.cs (9)
80Assert.Throws<NotSupportedException>(() => converter.ConvertTo(value, destinationType));
81Assert.Throws<NotSupportedException>(() => converter.ConvertTo(null, null, value, destinationType));
82Assert.Throws<NotSupportedException>(() => converter.ConvertTo(new CustomTypeDescriptorContext(), CultureInfo.InvariantCulture, value, destinationType));
132Assert.Throws<NotSupportedException>(() => converter.ConvertFrom(null!));
133Assert.Throws<NotSupportedException>(() => converter.ConvertFrom(null, null, null));
134Assert.Throws<NotSupportedException>(() => converter.ConvertFrom(new CustomTypeDescriptorContext(), CultureInfo.InvariantCulture, null));
168Assert.Throws<NotSupportedException>(() => converter.ConvertFrom(value));
169Assert.Throws<NotSupportedException>(() => converter.ConvertFrom(null, null, value));
170Assert.Throws<NotSupportedException>(() => converter.ConvertFrom(new CustomTypeDescriptorContext(), CultureInfo.InvariantCulture, value));