1024 references to InvalidOperationException
Aspire.Azure.Messaging.EventHubs.Tests (1)
AspireEventHubsExtensionsTests.cs (1)
482_ => throw new InvalidOperationException()
Aspire.Confluent.Kafka.Tests (2)
ConsumerConfigurationTests.cs (1)
177_ => throw new InvalidOperationException()
ProducerConfigurationTests.cs (1)
167_ => throw new InvalidOperationException()
Aspire.Dashboard (1)
Model\DashboardCommandExecutor.cs (1)
129_ => throw new InvalidOperationException()
Aspire.Hosting (1)
Dcp\DcpExecutor.cs (1)
1042throw new InvalidOperationException();
Aspire.Hosting.Azure (1)
Provisioning\Provisioners\BicepProvisioner.cs (1)
220throw new InvalidOperationException();
Aspire.NATS.Net.Tests (1)
NatsClientPublicApiTests.cs (1)
143_ => throw new InvalidOperationException()
BasicWebSite (1)
Filters\RequestIdService.cs (1)
13throw new InvalidOperationException();
BuildValidator (2)
CompilationDiff.cs (1)
195throw new InvalidOperationException();
Util.cs (1)
82throw new InvalidOperationException();
ConfigurationSchemaGenerator (6)
DiagnosticDescriptors.cs (1)
80_ => throw new InvalidOperationException()
RuntimeSource\Configuration.Binder\Parser\ConfigurationBinder.cs (2)
78_ => throw new InvalidOperationException() 130throw new InvalidOperationException();
RuntimeSource\Configuration.Binder\Specs\TypeIndex.cs (3)
20_ => throw new InvalidOperationException(), 28_ => throw new InvalidOperationException(), 37_ => throw new InvalidOperationException(),
dotnet-svcutil-lib (29)
FrameworkFork\Microsoft.Xml\Xml\Core\XsdCachingReader.cs (1)
597throw new InvalidOperationException();
FrameworkFork\Microsoft.Xml\Xml\Core\XsdValidatingReader.cs (2)
1498throw new InvalidOperationException(); 1932throw new InvalidOperationException();
FrameworkFork\Microsoft.Xml\Xml\Core\XsdValidatingReaderAsync.cs (1)
506throw new InvalidOperationException();
FrameworkFork\Microsoft.Xml\Xml\Dom\DocumentXmlWriter.cs (5)
178throw new InvalidOperationException(); 194throw new InvalidOperationException(); 224throw new InvalidOperationException(); 271throw new InvalidOperationException(); 507throw new InvalidOperationException();
FrameworkFork\Microsoft.Xml\Xml\Dom\XmlNamedNodeMap.SmallXmlNodeList.cs (1)
159throw new InvalidOperationException();
FrameworkFork\Microsoft.Xml\Xml\schema\ContentValidator.cs (6)
388throw new InvalidOperationException(); 431throw new InvalidOperationException(); 437get { throw new InvalidOperationException(); } 1142throw new InvalidOperationException(); 1148throw new InvalidOperationException(); 1154throw new InvalidOperationException();
FrameworkFork\Microsoft.Xml\Xml\schema\NamespaceList.cs (1)
101throw new InvalidOperationException();
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\UnionExpr.cs (1)
163public override int CurrentPosition { get { throw new InvalidOperationException(); } }
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\ExceptionDataContract.cs (1)
869throw new InvalidOperationException();
FrameworkFork\System.Runtime.Serialization\System\Xml\ValueHandle.cs (3)
215throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException()); 539throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException()); 619throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException());
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlConverter.cs (1)
1122throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException());
FrameworkFork\System.ServiceModel\SMDiagnostics\DiagnosticUtility.cs (1)
74throw Fx.Exception.AsError(new InvalidOperationException());
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\FramingChannels.cs (1)
108throw new InvalidOperationException();
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\MessageProperties.cs (1)
683throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException());
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\WebSocketTransportDuplexSessionChannel.cs (1)
729throw FxTrace.Exception.AsError(new InvalidOperationException());
Metadata\MetadataDocumentLoader.cs (1)
174throw new InvalidOperationException();
Shared\Utilities\AsyncHelper.cs (1)
64throw new InvalidOperationException();
Extensibility.MessageInterceptor.IntegrationTests (1)
InterceptingChannelFactory.cs (1)
112throw new InvalidOperationException();
FormatterWebSite (1)
Controllers\ValidationController.cs (1)
40throw new InvalidOperationException();
http2cat (3)
src\Shared\Http2cat\Http2Utilities.cs (1)
152throw new InvalidOperationException();
src\Shared\ServerInfrastructure\StringUtilities.cs (2)
46throw new InvalidOperationException(); 60throw new InvalidOperationException();
IdeBenchmarks (2)
SQLitePersistentStorageBenchmark.cs (2)
52throw new InvalidOperationException(); 81throw new InvalidOperationException();
IIS.FunctionalTests (3)
src\Shared\Http2cat\Http2Utilities.cs (1)
152throw new InvalidOperationException();
src\Shared\ServerInfrastructure\StringUtilities.cs (2)
46throw new InvalidOperationException(); 60throw new InvalidOperationException();
IIS.LongTests (3)
src\Shared\Http2cat\Http2Utilities.cs (1)
152throw new InvalidOperationException();
src\Shared\ServerInfrastructure\StringUtilities.cs (2)
46throw new InvalidOperationException(); 60throw new InvalidOperationException();
IIS.NewHandler.FunctionalTests (3)
src\Shared\Http2cat\Http2Utilities.cs (1)
152throw new InvalidOperationException();
src\Shared\ServerInfrastructure\StringUtilities.cs (2)
46throw new InvalidOperationException(); 60throw new InvalidOperationException();
IIS.NewShim.FunctionalTests (3)
src\Shared\Http2cat\Http2Utilities.cs (1)
152throw new InvalidOperationException();
src\Shared\ServerInfrastructure\StringUtilities.cs (2)
46throw new InvalidOperationException(); 60throw new InvalidOperationException();
IIS.ShadowCopy.Tests (2)
src\Shared\ServerInfrastructure\StringUtilities.cs (2)
46throw new InvalidOperationException(); 60throw new InvalidOperationException();
IISExpress.FunctionalTests (3)
src\Shared\Http2cat\Http2Utilities.cs (1)
152throw new InvalidOperationException();
src\Shared\ServerInfrastructure\StringUtilities.cs (2)
46throw new InvalidOperationException(); 60throw new InvalidOperationException();
illink (13)
ILLink.RoslynAnalyzer (7)
DataFlow\ControlFlowGraphProxy.cs (4)
43 _ => throw new InvalidOperationException () 81 _ => throw new InvalidOperationException () 174 throw new InvalidOperationException (); 220 throw new InvalidOperationException ();
DataFlow\LocalDataFlowVisitor.cs (1)
247 _ => throw new InvalidOperationException ()
src\tools\illink\src\ILLink.Shared\DataFlow\ForwardDataFlowAnalysis.cs (1)
140 throw new InvalidOperationException ();
TrimAnalysis\DiagnosticContext.cs (1)
59 _ => throw new InvalidOperationException ()
InMemory.FunctionalTests (7)
ConnectionMiddlewareTests.cs (2)
159listenOptions.Use(next => context => throw new InvalidOperationException()); 247throw new InvalidOperationException();
EventSourceTests.cs (1)
173throw new InvalidOperationException();
Http2\Http2EndToEndTests.cs (1)
55throw new InvalidOperationException();
KestrelMetricsTests.cs (2)
709throw new InvalidOperationException(); 878throw new InvalidOperationException();
src\Servers\Kestrel\shared\test\CertificateAuthority.cs (1)
207throw new InvalidOperationException();
Interop.FunctionalTests (3)
Http3\Http3RequestTests.cs (3)
756throw new InvalidOperationException(); 1476throw new InvalidOperationException(); 1768throw new InvalidOperationException();
KeyManagementSimulator (1)
Program.cs (1)
273_ => throw new InvalidOperationException(),
Microsoft.Analyzers.Local.Tests (1)
Json\JsonValueTest.cs (1)
326Assert.False(JsonValue.Null.Equals(new InvalidOperationException()));
Microsoft.AspNetCore (4)
BootstrapHostBuilder.cs (4)
64throw new InvalidOperationException(); 70throw new InvalidOperationException(); 76throw new InvalidOperationException(); 82throw new InvalidOperationException();
Microsoft.AspNetCore.Antiforgery (1)
Internal\DefaultClaimUidExtractor.cs (1)
139throw new InvalidOperationException();
Microsoft.AspNetCore.App.Analyzers (10)
Infrastructure\RoutePattern\RoutePatternNodes.cs (10)
92_ => throw new InvalidOperationException(), 158_ => throw new InvalidOperationException(), 182_ => throw new InvalidOperationException(), 206_ => throw new InvalidOperationException(), 230_ => throw new InvalidOperationException(), 254_ => throw new InvalidOperationException(), 282_ => throw new InvalidOperationException(), 306_ => throw new InvalidOperationException(), 365_ => throw new InvalidOperationException(), 389_ => throw new InvalidOperationException(),
Microsoft.AspNetCore.App.Analyzers.Test (1)
RouteEmbeddedLanguage\Infrastructure\MarkupTestFile.cs (1)
158throw new InvalidOperationException();
Microsoft.AspNetCore.Components.Tests (8)
Lifetime\ComponentStatePersistenceManagerTest.cs (2)
196lifetime.State.RegisterOnPersisting(() => throw new InvalidOperationException(), new TestRenderMode()); 222lifetime.State.RegisterOnPersisting(async () => { await tcs.Task; throw new InvalidOperationException(); }, new TestRenderMode());
RendererTest.cs (6)
2311var exception1 = new InvalidOperationException(); 2384var exception1 = new InvalidOperationException(); 2429var exception1 = new InvalidOperationException(); 3725var exception = new InvalidOperationException(); 4267var exception1 = new InvalidOperationException(); 4294var exception1 = new InvalidOperationException();
Microsoft.AspNetCore.Components.Web.Tests (1)
HtmlRendering\HtmlRendererTest.cs (1)
659Action<ChangeEventArgs> change = (ChangeEventArgs changeArgs) => throw new InvalidOperationException();
Microsoft.AspNetCore.CookiePolicy (1)
ResponseCookiesWrapper.cs (1)
249throw new InvalidOperationException();
Microsoft.AspNetCore.DataProtection.Tests (3)
KeyManagement\XmlKeyManagerTests.cs (3)
1008void IXmlRepository.StoreElement(XElement element, string friendlyName) => throw new InvalidOperationException(); 1018void IXmlRepository.StoreElement(XElement element, string friendlyName) => throw new InvalidOperationException(); 1019bool IDeletableXmlRepository.DeleteElements(Action<IReadOnlyCollection<IDeletableElement>> chooseElements) => throw new InvalidOperationException();
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (3)
Logging\AcceptanceTests.cs (1)
758public void Enrich(IEnrichmentTagCollector collector, HttpContext httpContext) => throw new InvalidOperationException();
src\Shared\EmptyCollections\EmptyReadOnlyList.cs (2)
55public T Current => throw new InvalidOperationException(); 56object IEnumerator.Current => throw new InvalidOperationException();
Microsoft.AspNetCore.Diagnostics.Tests (9)
ExceptionHandlerMiddlewareTest.cs (9)
95var middleware = CreateMiddleware(_ => throw new InvalidOperationException(), optionsAccessor); 119var middleware = CreateMiddleware(_ => throw new InvalidOperationException(), optionsAccessor); 140var middleware = CreateMiddleware(_ => throw new InvalidOperationException(), optionsAccessor, exceptionHandlers); 165var middleware = CreateMiddleware(_ => throw new InvalidOperationException(), optionsAccessor, exceptionHandlers); 195var middleware = CreateMiddleware(_ => throw new InvalidOperationException(), optionsAccessor, exceptionHandlers); 237var middleware = CreateMiddleware(_ => throw new InvalidOperationException(), optionsAccessor, exceptionHandlers, meterFactory); 259var middleware = CreateMiddleware(_ => throw new InvalidOperationException(), optionsAccessor, exceptionHandlers, meterFactory); 284var middleware = CreateMiddleware(_ => throw new InvalidOperationException(), optionsAccessor, meterFactory: meterFactory); 435var middleware = CreateMiddleware(_ => throw new InvalidOperationException(), optionsAccessor, meterFactory: meterFactory);
Microsoft.AspNetCore.Hosting.Tests (4)
WebHostBuilderTests.cs (1)
1743throw new InvalidOperationException();
WebHostTests.cs (3)
1116throw new InvalidOperationException(); 1122throw new InvalidOperationException(); 1138throw new InvalidOperationException();
Microsoft.AspNetCore.Http.Connections.Tests (3)
HttpConnectionDispatcherTests.cs (2)
2747connection.Transport.Output.Complete(new InvalidOperationException()); 3831throw new InvalidOperationException();
src\Shared\Buffers.Testing\ReadOnlySequenceFactory.cs (1)
111throw new InvalidOperationException();
Microsoft.AspNetCore.Http.Extensions.Tests (1)
RequestDelegateFactoryTests.cs (1)
561throw new InvalidOperationException();
Microsoft.AspNetCore.Http.Results.Tests (1)
ResultsTests.cs (1)
1724_ => throw new InvalidOperationException()
Microsoft.AspNetCore.Mvc.Abstractions.Test (2)
ModelBinding\ModelStateDictionaryTest.cs (2)
269entry.Errors.Add(new ModelError(new InvalidOperationException())); 1197dictionary.TryAddModelError("key", new InvalidOperationException(), metadata);
Microsoft.AspNetCore.Mvc.Core (3)
Infrastructure\ControllerActionInvoker.cs (1)
285throw new InvalidOperationException();
Infrastructure\ResourceInvoker.cs (2)
902throw new InvalidOperationException(); 1342throw new InvalidOperationException(); // Unreachable.
Microsoft.AspNetCore.Mvc.Core.Test (5)
ModelBinding\Validation\DefaultCollectionValidationStrategyTest.cs (1)
137throw new InvalidOperationException();
ModelBinding\Validation\DefaultObjectValidatorTests.cs (2)
1582throw new InvalidOperationException(); 1587throw new InvalidOperationException();
ModelBinding\Validation\ExplicitIndexCollectionValidationStrategyTest.cs (1)
197throw new InvalidOperationException();
Routing\DynamicControllerEndpointMatcherPolicyTest.cs (1)
113throw new InvalidOperationException();
Microsoft.AspNetCore.Mvc.RazorPages (1)
Infrastructure\PageActionInvoker.cs (1)
645throw new InvalidOperationException();
Microsoft.AspNetCore.Mvc.RazorPages.Test (1)
Infrastructure\DynamicPageEndpointMatcherPolicyTest.cs (1)
130throw new InvalidOperationException();
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (2)
Rendering\HtmlHelperPartialExtensionsTest.cs (2)
72var expected = new InvalidOperationException(); 163var expected = new InvalidOperationException();
Microsoft.AspNetCore.OutputCaching (2)
OutputCacheEntryFormatter.cs (2)
280throw new InvalidOperationException(); 322throw new InvalidOperationException();
Microsoft.AspNetCore.Rewrite (2)
UrlMatches\IntegerMatch.cs (1)
60throw new InvalidOperationException(); // Will never be thrown
UrlMatches\StringMatch.cs (1)
42throw new InvalidOperationException(); // Will never be thrown
Microsoft.AspNetCore.Routing.Tests (1)
Matching\DfaMatcherTest.cs (1)
1051.Throws(new InvalidOperationException());
Microsoft.AspNetCore.Server.HttpSys (3)
src\Shared\HttpSys\RequestProcessing\HeaderEncoding.cs (1)
25throw new InvalidOperationException();
src\Shared\ServerInfrastructure\StringUtilities.cs (2)
46throw new InvalidOperationException(); 60throw new InvalidOperationException();
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (2)
ServerTests.cs (1)
212throw new InvalidOperationException();
src\Shared\Http2cat\Http2Utilities.cs (1)
152throw new InvalidOperationException();
Microsoft.AspNetCore.Server.IIS (3)
src\Shared\HttpSys\RequestProcessing\HeaderEncoding.cs (1)
25throw new InvalidOperationException();
src\Shared\ServerInfrastructure\StringUtilities.cs (2)
46throw new InvalidOperationException(); 60throw new InvalidOperationException();
Microsoft.AspNetCore.Server.Kestrel.Core (2)
src\Shared\ServerInfrastructure\StringUtilities.cs (2)
46throw new InvalidOperationException(); 60throw new InvalidOperationException();
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (6)
KestrelServerTests.cs (4)
606var unbindException = new InvalidOperationException(); 1016throw new InvalidOperationException(); 1024throw new InvalidOperationException(); 1034throw new InvalidOperationException();
src\Servers\Kestrel\shared\test\CertificateAuthority.cs (1)
207throw new InvalidOperationException();
src\Shared\Buffers.Testing\ReadOnlySequenceFactory.cs (1)
111throw new InvalidOperationException();
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (2)
Http3\QPackDecoderBenchmark.cs (2)
52throw new InvalidOperationException(); 63throw new InvalidOperationException();
Microsoft.AspNetCore.Server.Kestrel.Tests (1)
KestrelConfigurationLoaderTests.cs (1)
1762serverOptions.ConfigurationLoader.LocalhostEndpoint(5001, _ => throw new InvalidOperationException());
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (2)
src\Shared\ServerInfrastructure\StringUtilities.cs (2)
46throw new InvalidOperationException(); 60throw new InvalidOperationException();
Microsoft.AspNetCore.Session.Tests (4)
SessionTests.cs (4)
1165throw new InvalidOperationException(); 1174throw new InvalidOperationException(); 1190throw new InvalidOperationException(); 1210throw new InvalidOperationException();
Microsoft.AspNetCore.Shared.Tests (3)
src\Shared\HttpSys\RequestProcessing\HeaderEncoding.cs (1)
25throw new InvalidOperationException();
src\Shared\ServerInfrastructure\StringUtilities.cs (2)
46throw new InvalidOperationException(); 60throw new InvalidOperationException();
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (1)
Hubs.cs (1)
223public static string InvokeException() => throw new InvalidOperationException();
Microsoft.AspNetCore.SignalR.Client.Tests (3)
HubConnectionTests.cs (3)
35var exception = new InvalidOperationException(); 50var exception = new InvalidOperationException(); 158var exception = new InvalidOperationException();
Microsoft.AspNetCore.SignalR.Common.Tests (1)
src\Shared\Buffers.Testing\ReadOnlySequenceFactory.cs (1)
111throw new InvalidOperationException();
Microsoft.AspNetCore.SignalR.Microbenchmarks (1)
src\Shared\Buffers.Testing\ReadOnlySequenceFactory.cs (1)
111throw new InvalidOperationException();
Microsoft.AspNetCore.TestHost (1)
ResponseFeature.cs (1)
78throw new InvalidOperationException();
Microsoft.AspNetCore.TestHost.Tests (2)
TestServerTests.cs (2)
115throw new InvalidOperationException(); 169throw new InvalidOperationException();
Microsoft.AspNetCore.WebUtilities.Microbenchmarks (3)
MultipartReaderBenchmark.cs (2)
111throw new InvalidOperationException(); 135throw new InvalidOperationException();
src\Shared\Buffers.Testing\ReadOnlySequenceFactory.cs (1)
111throw new InvalidOperationException();
Microsoft.AspNetCore.WebUtilities.Tests (1)
src\Shared\Buffers.Testing\ReadOnlySequenceFactory.cs (1)
111throw new InvalidOperationException();
Microsoft.Build (8)
Collections\RetrievableEntryHashSet\RetrievableEntryHashSet.cs (4)
599throw new InvalidOperationException(); 974throw new InvalidOperationException(); 1006throw new InvalidOperationException(); 1016throw new InvalidOperationException();
CommunicationsUtilities.cs (1)
498throw new InvalidOperationException();
Construction\ProjectElementContainer.cs (2)
897throw new InvalidOperationException(); 1004throw new InvalidOperationException();
InterningBinaryReader.cs (1)
66throw new InvalidOperationException();
Microsoft.Build.Engine.UnitTests (2)
Evaluation\ProjectRootElementCache_Tests.cs (2)
74ProjectRootElement projectRootElement2 = ProjectCollection.GlobalProjectCollection.ProjectRootElementCache.Get(rootedPath, (p, c) => { throw new InvalidOperationException(); }, true, false); 91projectRootElement = ProjectCollection.GlobalProjectCollection.ProjectRootElementCache.Get(projectPath, (p, c) => { throw new InvalidOperationException(); }, true, false);
Microsoft.Build.Tasks.CodeAnalysis.UnitTests (1)
TestUtilities\TestableCompilerServerLogger.cs (1)
13public Action<string> LogFunc { get; set; } = delegate { throw new InvalidOperationException(); };
Microsoft.Build.Tasks.Core (2)
BootstrapperUtil\Product.cs (1)
35throw new InvalidOperationException();
InterningBinaryReader.cs (1)
66throw new InvalidOperationException();
Microsoft.Build.Utilities.UnitTests (1)
TaskLoggingHelper_Tests.cs (1)
250Exception inner = new InvalidOperationException();
Microsoft.CodeAnalysis (40)
CodeGen\PrivateImplementationDetails.cs (1)
159throw new InvalidOperationException();
Collections\SmallDictionary.cs (2)
193throw new InvalidOperationException(); 460throw new InvalidOperationException();
ConstantValue.cs (11)
45public virtual string? StringValue { get { throw new InvalidOperationException(); } } 46internal virtual Rope? RopeValue { get { throw new InvalidOperationException(); } } 48public virtual bool BooleanValue { get { throw new InvalidOperationException(); } } 50public virtual sbyte SByteValue { get { throw new InvalidOperationException(); } } 51public virtual byte ByteValue { get { throw new InvalidOperationException(); } } 72public virtual char CharValue { get { throw new InvalidOperationException(); } } 73public virtual decimal DecimalValue { get { throw new InvalidOperationException(); } } 74public virtual DateTime DateTimeValue { get { throw new InvalidOperationException(); } } 76public virtual double DoubleValue { get { throw new InvalidOperationException(); } } 77public virtual float SingleValue { get { throw new InvalidOperationException(); } } 395throw new InvalidOperationException(); //Not using ExceptionUtilities.UnexpectedValue() because this failure path is tested.
DiagnosticAnalyzer\AnalyzerAssemblyLoader.cs (1)
200throw new InvalidOperationException();
DiagnosticAnalyzer\DiagnosticAnalysisContext.cs (1)
1686public Compilation Compilation => _semanticModel?.Compilation ?? throw new InvalidOperationException();
DiagnosticAnalyzer\DiagnosticQueue.cs (1)
106throw new InvalidOperationException();
DiaSymReader\Writer\SymUnmanagedWriterImpl.cs (1)
45=> _symWriter ?? throw (_disposed ? new ObjectDisposedException(nameof(SymUnmanagedWriterImpl)) : new InvalidOperationException());
InternalUtilities\ReaderWriterLockSlimExtensions.cs (2)
92throw new InvalidOperationException(); 100throw new InvalidOperationException();
InternalUtilities\SpecializedCollections.Empty.Enumerator.cs (2)
22public object? Current => throw new InvalidOperationException(); 31throw new InvalidOperationException();
InternalUtilities\SpecializedCollections.Empty.Enumerator`1.cs (1)
22public new T Current => throw new InvalidOperationException();
Operations\IOperation.OperationList.cs (2)
78throw new InvalidOperationException(); 91throw new InvalidOperationException();
Operations\OperationExtensions.cs (2)
237throw new InvalidOperationException(); 304throw new InvalidOperationException();
SymbolDisplay\AbstractSymbolDisplayVisitor.cs (1)
82throw new InvalidOperationException();
Syntax\ChildSyntaxList.cs (2)
384throw new InvalidOperationException(); 399throw new InvalidOperationException();
Syntax\SyntaxTokenList.cs (2)
219throw new InvalidOperationException(); 234throw new InvalidOperationException();
Syntax\SyntaxTokenList.Enumerator.cs (1)
110throw new InvalidOperationException();
Syntax\SyntaxTokenList.Reversed.cs (1)
124throw new InvalidOperationException();
Syntax\SyntaxTriviaList.cs (2)
191throw new InvalidOperationException(); 206throw new InvalidOperationException();
Syntax\SyntaxTriviaList.Enumerator.cs (1)
115throw new InvalidOperationException();
Syntax\SyntaxTriviaList.Reversed.cs (1)
123throw new InvalidOperationException();
Text\SubText.cs (1)
188throw new InvalidOperationException();
Text\TextChangeRangeExtensions.cs (1)
323throw new InvalidOperationException();
Microsoft.CodeAnalysis.CodeStyle (21)
src\Compilers\Core\Portable\InternalUtilities\ReaderWriterLockSlimExtensions.cs (2)
92throw new InvalidOperationException(); 100throw new InvalidOperationException();
src\Compilers\Core\Portable\InternalUtilities\SpecializedCollections.Empty.Enumerator.cs (2)
22public object? Current => throw new InvalidOperationException(); 31throw new InvalidOperationException();
src\Compilers\Core\Portable\InternalUtilities\SpecializedCollections.Empty.Enumerator`1.cs (1)
22public new T Current => throw new InvalidOperationException();
src\Compilers\Core\Portable\Text\TextChangeRangeExtensions.cs (1)
323throw new InvalidOperationException();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SemanticModelExtensions.cs (7)
37=> semanticModel.AnalyzeDataFlow(statementOrExpression) ?? throw new InvalidOperationException(); 40=> semanticModel.AnalyzeDataFlow(firstStatement, lastStatement) ?? throw new InvalidOperationException(); 43=> semanticModel.AnalyzeControlFlow(statement) ?? throw new InvalidOperationException(); 46=> semanticModel.AnalyzeControlFlow(firstStatement, lastStatement) ?? throw new InvalidOperationException(); 51?? throw new InvalidOperationException(); 57?? throw new InvalidOperationException(); 63?? throw new InvalidOperationException();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\EditorConfig\EditorConfigNamingStyleParser.cs (1)
89trimmedDictionary[key.Trim()] = allRawConventions.TryGetValue(key, out var value) ? value : throw new InvalidOperationException();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyle.cs (2)
82throw new InvalidOperationException(); 169default: throw new InvalidOperationException();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (1)
487throw new InvalidOperationException();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\BKTree.Builder.cs (1)
201throw new InvalidOperationException();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\RoslynParallel.NetFramework.cs (2)
595Enumerator = source.GetEnumerator() ?? throw new InvalidOperationException(); 621Enumerator = source.GetAsyncEnumerator(Cancellation.Token) ?? throw new InvalidOperationException();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\StringEscapeEncoder.cs (1)
138throw new InvalidOperationException();
Microsoft.CodeAnalysis.CodeStyle.Fixes (4)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationConstructedMethodSymbol.cs (1)
85=> throw new System.InvalidOperationException();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationMethodSymbol.cs (1)
115=> throw new InvalidOperationException();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\ISolutionExtensions.cs (1)
36=> solution.GetDocument(syntaxTree) ?? throw new InvalidOperationException();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\AddImports\AbstractAddImportsService.cs (1)
127throw new InvalidOperationException();
Microsoft.CodeAnalysis.CSharp (12)
Lowering\LocalRewriter\LocalRewriter_BasePatternSwitchLocalRewriter.cs (1)
34throw new InvalidOperationException();
Symbols\MethodSymbol.cs (2)
833throw new InvalidOperationException(); 861throw new InvalidOperationException();
Symbols\NamespaceExtent.cs (3)
49throw new InvalidOperationException(); 66throw new InvalidOperationException(); 83throw new InvalidOperationException();
Symbols\ParameterSymbol.cs (1)
235throw new InvalidOperationException();
Symbols\UnboundGenericType.cs (1)
24throw new InvalidOperationException();
Syntax\CSharpSyntaxTree.cs (4)
788throw new InvalidOperationException(); 819throw new InvalidOperationException(); 835throw new InvalidOperationException(); 852throw new InvalidOperationException();
Microsoft.CodeAnalysis.CSharp.CodeStyle (11)
src\Analyzers\CSharp\Analyzers\UseExpressionBody\Helpers\UseExpressionBodyForIndexersHelper.cs (1)
61throw new InvalidOperationException();
src\Analyzers\CSharp\Analyzers\UseExpressionBody\Helpers\UseExpressionBodyForPropertiesHelper.cs (1)
61throw new InvalidOperationException();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SemanticModelExtensions.cs (8)
463?? throw new InvalidOperationException(); 469?? throw new InvalidOperationException(); 475?? throw new InvalidOperationException(); 481?? throw new InvalidOperationException(); 487?? throw new InvalidOperationException(); 493?? throw new InvalidOperationException(); 499?? throw new InvalidOperationException(); 505?? throw new InvalidOperationException();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTriviaExtensions.cs (1)
115throw new InvalidOperationException();
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (3)
src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpCollectionExpressionRewriter.cs (1)
819_ => throw new InvalidOperationException(),
src\Analyzers\CSharp\CodeFixes\UseCollectionInitializer\CSharpUseCollectionInitializerCodeFixProvider_CollectionInitializer.cs (1)
104_ => throw new InvalidOperationException(),
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\ExpressionGenerator.cs (1)
238tokenFactory, isNegative: x => false, negate: t => throw new InvalidOperationException(), integerMinValueString: null);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (1)
Semantics\PatternMatchingTests3.cs (1)
5503_ => throw new System.InvalidOperationException(),
Microsoft.CodeAnalysis.CSharp.Features (7)
IntroduceVariable\CSharpIntroduceVariableService_IntroduceLocal.cs (1)
102throw new InvalidOperationException();
InvertIf\CSharpInvertIfCodeRefactoringProvider.cs (1)
64=> ifNode.Else?.Statement ?? throw new InvalidOperationException();
ReverseForStatement\CSharpReverseForStatementCodeRefactoringProvider.cs (1)
300throw new InvalidOperationException();
src\Analyzers\CSharp\Analyzers\UseExpressionBody\Helpers\UseExpressionBodyForIndexersHelper.cs (1)
61throw new InvalidOperationException();
src\Analyzers\CSharp\Analyzers\UseExpressionBody\Helpers\UseExpressionBodyForPropertiesHelper.cs (1)
61throw new InvalidOperationException();
src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpCollectionExpressionRewriter.cs (1)
819_ => throw new InvalidOperationException(),
src\Analyzers\CSharp\CodeFixes\UseCollectionInitializer\CSharpUseCollectionInitializerCodeFixProvider_CollectionInitializer.cs (1)
104_ => throw new InvalidOperationException(),
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1)
SourceGeneration\GeneratorDriverTests.cs (1)
3479throw new InvalidOperationException();
Microsoft.CodeAnalysis.CSharp.Workspaces (10)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SemanticModelExtensions.cs (8)
463?? throw new InvalidOperationException(); 469?? throw new InvalidOperationException(); 475?? throw new InvalidOperationException(); 481?? throw new InvalidOperationException(); 487?? throw new InvalidOperationException(); 493?? throw new InvalidOperationException(); 499?? throw new InvalidOperationException(); 505?? throw new InvalidOperationException();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTriviaExtensions.cs (1)
115throw new InvalidOperationException();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\ExpressionGenerator.cs (1)
238tokenFactory, isNegative: x => false, negate: t => throw new InvalidOperationException(), integerMinValueString: null);
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (1)
EmbeddedLanguages\VirtualChars\CSharpVirtualCharServiceTests.cs (1)
43throw new InvalidOperationException();
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (1)
Diagnostics\DiagnosticTaggerWrapper.cs (1)
72throw new InvalidOperationException();
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
Completion\CompletionServiceTests.cs (1)
47var caretPosition = workspace.DocumentWithCursor.CursorPosition ?? throw new InvalidOperationException();
Microsoft.CodeAnalysis.ExpressionEvaluator.FunctionResolver (2)
CSharp\Scanner.cs (1)
75throw new InvalidOperationException();
VisualBasic\Scanner.cs (1)
70throw new InvalidOperationException();
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider.Utilities (5)
Debugger\Engine\DkmClrValue.cs (4)
124throw new InvalidOperationException(); 391throw new InvalidOperationException(); 669throw new InvalidOperationException(); 773throw new InvalidOperationException();
Debugger\Engine\DkmInspectionSession.cs (1)
90throw new InvalidOperationException();
Microsoft.CodeAnalysis.Features (61)
EmbeddedLanguages\Json\JsonNodes.cs (5)
80_ => throw new InvalidOperationException(), 182_ => throw new InvalidOperationException(), 199_ => throw new InvalidOperationException(), 226_ => throw new InvalidOperationException(), 260_ => throw new InvalidOperationException(),
EmbeddedLanguages\RegularExpressions\LanguageServices\RegexDocumentHighlighter.cs (1)
123_ => throw new InvalidOperationException(),
EmbeddedLanguages\RegularExpressions\RegexNodes.cs (39)
39_ => throw new InvalidOperationException(), 90_ => throw new InvalidOperationException(), 133_ => throw new InvalidOperationException(), 164_ => throw new InvalidOperationException(), 200_ => throw new InvalidOperationException(), 234_ => throw new InvalidOperationException(), 283_ => throw new InvalidOperationException(), 326_ => throw new InvalidOperationException(), 358_ => throw new InvalidOperationException(), 390_ => throw new InvalidOperationException(), 425_ => throw new InvalidOperationException(), 473_ => throw new InvalidOperationException(), 507_ => throw new InvalidOperationException(), 545_ => throw new InvalidOperationException(), 572_ => throw new InvalidOperationException(), 645_ => throw new InvalidOperationException(), 696_ => throw new InvalidOperationException(), 733_ => throw new InvalidOperationException(), 769_ => throw new InvalidOperationException(), 805_ => throw new InvalidOperationException(), 841_ => throw new InvalidOperationException(), 892_ => throw new InvalidOperationException(), 929_ => throw new InvalidOperationException(), 965_ => throw new InvalidOperationException(), 1007_ => throw new InvalidOperationException(), 1056_ => throw new InvalidOperationException(), 1111_ => throw new InvalidOperationException(), 1147_ => throw new InvalidOperationException(), 1200_ => throw new InvalidOperationException(), 1219_ => throw new InvalidOperationException(), 1238_ => throw new InvalidOperationException(), 1260_ => throw new InvalidOperationException(), 1282_ => throw new InvalidOperationException(), 1304_ => throw new InvalidOperationException(), 1330_ => throw new InvalidOperationException(), 1358_ => throw new InvalidOperationException(), 1382throw new InvalidOperationException(); 1403_ => throw new InvalidOperationException(), 1442_ => throw new InvalidOperationException(),
EmbeddedLanguages\RegularExpressions\RegexParser.cs (2)
1217throw new InvalidOperationException(); 1433throw new InvalidOperationException();
EmbeddedLanguages\StackFrame\StackFrameCompilationUnit.cs (1)
49_ => throw new InvalidOperationException()
EmbeddedLanguages\StackFrame\StackFrameLexer.cs (2)
509'\n' => throw new InvalidOperationException(), 510'\r' => throw new InvalidOperationException(),
EmbeddedLanguages\StackFrame\StackFrameNodeDefinitions.cs (10)
53_ => throw new InvalidOperationException(), 126_ => throw new InvalidOperationException() 144_ => throw new InvalidOperationException() 159_ => throw new InvalidOperationException() 196_ => throw new InvalidOperationException() 241_ => throw new InvalidOperationException() 295_ => throw new InvalidOperationException() 424throw new InvalidOperationException(); 465_ => throw new InvalidOperationException() 541_ => throw new InvalidOperationException()
MoveToNamespace\AbstractMoveToNamespaceService.cs (1)
173_ => throw new InvalidOperationException(),
Microsoft.CodeAnalysis.LanguageServer.Protocol (4)
Handler\InlineCompletions\XmlSnippetParser.cs (1)
75throw new InvalidOperationException();
Handler\RequestContext.cs (3)
76return _lspSolution.Value.Workspace ?? throw new InvalidOperationException(); 95return _lspSolution.Value.Solution ?? throw new InvalidOperationException(); 141throw new InvalidOperationException();
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (2)
Ordering\FailingMutatingRequestHandler.cs (1)
34throw new InvalidOperationException();
Ordering\FailingRequestHandler.cs (1)
34throw new InvalidOperationException();
Microsoft.CodeAnalysis.Rebuild (6)
CompilationFactory.cs (1)
202throw new InvalidOperationException();
CompilationOptionsReader.cs (5)
215using var algorithm = CryptographicHashProvider.TryGetAlgorithm(sourceTextInfo.HashAlgorithm) ?? throw new InvalidOperationException(); 311throw new InvalidOperationException(); 330throw new InvalidOperationException(); 338throw new InvalidOperationException(); 352throw new InvalidOperationException();
Microsoft.CodeAnalysis.Rebuild.UnitTests (5)
DeterministicKeyBuilderTests.cs (3)
129throw new InvalidOperationException(); 581_ => throw new InvalidOperationException(), 729_ => throw new InvalidOperationException(),
RoundTripUtil.cs (2)
87_ => throw new InvalidOperationException(), 118rebuildPdbReader = rebuildReader.GetEmbeddedPdbMetadataReader() ?? throw new InvalidOperationException();
Microsoft.CodeAnalysis.Remote.ServiceHub (3)
Services\StackTraceExplorer\RemoteStackTraceExplorerService.cs (1)
32throw new InvalidOperationException();
Services\ValueTracking\RemoteValueTrackingService.cs (2)
34throw new InvalidOperationException(); 53throw new InvalidOperationException();
Microsoft.CodeAnalysis.Remote.Workspaces (1)
RemoteSerializationOptions.cs (1)
53_ => throw new InvalidOperationException()
Microsoft.CodeAnalysis.Test.Utilities (14)
Compilation\MetadataReferenceExtensions.cs (2)
26: throw new InvalidOperationException(); 44throw new InvalidOperationException();
MarkedSource\MarkupTestFile.cs (1)
160throw new InvalidOperationException();
Platform\Custom\MetadataSignatureHelper.cs (6)
227throw new InvalidOperationException(); 273throw new InvalidOperationException(); 321throw new InvalidOperationException(); 361throw new InvalidOperationException(); 372throw new InvalidOperationException(); 383throw new InvalidOperationException();
TestableFile.cs (1)
86throw new InvalidOperationException();
TestableFileSystem.cs (4)
20public OpenFileFunc OpenFileFunc { get; private set; } = delegate { throw new InvalidOperationException(); }; 21public OpenFileExFunc OpenFileExFunc { get; private set; } = (string _, FileMode _, FileAccess _, FileShare _, int _, FileOptions _, out string _) => throw new InvalidOperationException(); 22public Func<string, bool> FileExistsFunc { get; private set; } = delegate { throw new InvalidOperationException(); }; 24public Dictionary<string, TestableFile> Map => _map ?? throw new InvalidOperationException();
Microsoft.CodeAnalysis.UnitTests (2)
Collections\DebuggerAttributes.cs (1)
37var fieldInfo = GetField(obj, fieldName) ?? throw new InvalidOperationException();
Collections\ImmutableSegmentedDictionaryTest.cs (1)
251object rootNode = DebuggerAttributes.GetFieldValue(ImmutableSegmentedDictionary.Create<string, string>(), "_root") ?? throw new InvalidOperationException();
Microsoft.CodeAnalysis.Workspaces (37)
CodeStyle\CodeStyleOption.cs (2)
43set => throw new InvalidOperationException(); 56set => throw new InvalidOperationException();
CodeStyle\NotificationOption.cs (3)
25set => throw new InvalidOperationException(); 34set => throw new InvalidOperationException(); 41set => throw new InvalidOperationException();
FindSymbols\SymbolTree\SymbolTreeInfo.cs (1)
160_ => throw new InvalidOperationException(),
src\Compilers\Core\Portable\DiagnosticAnalyzer\AnalyzerAssemblyLoader.cs (1)
200throw new InvalidOperationException();
src\Compilers\Core\Portable\InternalUtilities\ReaderWriterLockSlimExtensions.cs (2)
92throw new InvalidOperationException(); 100throw new InvalidOperationException();
src\Compilers\Core\Portable\InternalUtilities\SpecializedCollections.Empty.Enumerator.cs (2)
22public object? Current => throw new InvalidOperationException(); 31throw new InvalidOperationException();
src\Compilers\Core\Portable\InternalUtilities\SpecializedCollections.Empty.Enumerator`1.cs (1)
22public new T Current => throw new InvalidOperationException();
src\Compilers\Core\Portable\Text\TextChangeRangeExtensions.cs (1)
323throw new InvalidOperationException();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SemanticModelExtensions.cs (7)
37=> semanticModel.AnalyzeDataFlow(statementOrExpression) ?? throw new InvalidOperationException(); 40=> semanticModel.AnalyzeDataFlow(firstStatement, lastStatement) ?? throw new InvalidOperationException(); 43=> semanticModel.AnalyzeControlFlow(statement) ?? throw new InvalidOperationException(); 46=> semanticModel.AnalyzeControlFlow(firstStatement, lastStatement) ?? throw new InvalidOperationException(); 51?? throw new InvalidOperationException(); 57?? throw new InvalidOperationException(); 63?? throw new InvalidOperationException();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\EditorConfig\EditorConfigNamingStyleParser.cs (1)
89trimmedDictionary[key.Trim()] = allRawConventions.TryGetValue(key, out var value) ? value : throw new InvalidOperationException();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyle.cs (2)
82throw new InvalidOperationException(); 169default: throw new InvalidOperationException();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (1)
487throw new InvalidOperationException();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\BKTree.Builder.cs (1)
201throw new InvalidOperationException();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\RoslynParallel.NetFramework.cs (2)
595Enumerator = source.GetEnumerator() ?? throw new InvalidOperationException(); 621Enumerator = source.GetAsyncEnumerator(Cancellation.Token) ?? throw new InvalidOperationException();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\StringEscapeEncoder.cs (1)
138throw new InvalidOperationException();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationConstructedMethodSymbol.cs (1)
85=> throw new System.InvalidOperationException();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationMethodSymbol.cs (1)
115=> throw new InvalidOperationException();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\ISolutionExtensions.cs (1)
36=> solution.GetDocument(syntaxTree) ?? throw new InvalidOperationException();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\AddImports\AbstractAddImportsService.cs (1)
127throw new InvalidOperationException();
Storage\SQLite\v2\SQLitePersistentStorage_StringIds.cs (1)
171throw new InvalidOperationException();
Workspace\Host\TemporaryStorage\LegacyTemporaryStorageService.cs (2)
46var stream = _stream ?? throw new InvalidOperationException(); 93=> _sourceText ?? throw new InvalidOperationException();
Workspace\Solution\DocumentState.cs (1)
492throw new InvalidOperationException();
Workspace\Solution\SourceGeneratorExecutionVersion.cs (1)
75=> throw new InvalidOperationException();
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (7)
Build\ProjectBuildManager.cs (2)
171throw new InvalidOperationException(); 211throw new InvalidOperationException();
src\Compilers\Core\Portable\InternalUtilities\ReaderWriterLockSlimExtensions.cs (2)
92throw new InvalidOperationException(); 100throw new InvalidOperationException();
src\Compilers\Core\Portable\InternalUtilities\SpecializedCollections.Empty.Enumerator.cs (2)
22public object? Current => throw new InvalidOperationException(); 31throw new InvalidOperationException();
src\Compilers\Core\Portable\InternalUtilities\SpecializedCollections.Empty.Enumerator`1.cs (1)
22public new T Current => throw new InvalidOperationException();
Microsoft.CodeAnalysis.XunitHook (1)
XunitDisposeHook.cs (1)
19throw new InvalidOperationException();
Microsoft.DotNet.Arcade.Sdk (5)
src\GenerateResxSource.cs (5)
181throw new InvalidOperationException(); 233throw new InvalidOperationException(); 258throw new InvalidOperationException(); 307throw new InvalidOperationException(); 361throw new InvalidOperationException();
Microsoft.DotNet.XUnitAssert.Tests (8)
EqualityAssertsTests.cs (2)
4400 throw new InvalidOperationException(); 4439 throw new InvalidOperationException();
TypeAssertsTests.cs (6)
70 () => Assert.IsAssignableFrom<InvalidCastException>(new InvalidOperationException()) 139 () => Assert.IsAssignableFrom(typeof(InvalidCastException), new InvalidOperationException()) 212 Assert.IsNotAssignableFrom<InvalidCastException>(new InvalidOperationException()); 275 Assert.IsNotAssignableFrom(typeof(InvalidCastException), new InvalidOperationException()); 366 var result = Record.Exception(() => Assert.IsType<InvalidCastException>(new InvalidOperationException())); 428 var result = Record.Exception(() => Assert.IsType(typeof(InvalidCastException), new InvalidOperationException()));
Microsoft.Extensions.AI (2)
src\Shared\EmptyCollections\EmptyReadOnlyList.cs (2)
55public T Current => throw new InvalidOperationException(); 56object IEnumerator.Current => throw new InvalidOperationException();
Microsoft.Extensions.AI.Abstractions (2)
src\Shared\EmptyCollections\EmptyReadOnlyList.cs (2)
55public T Current => throw new InvalidOperationException(); 56object IEnumerator.Current => throw new InvalidOperationException();
Microsoft.Extensions.AI.AzureAIInference (2)
src\Shared\EmptyCollections\EmptyReadOnlyList.cs (2)
55public T Current => throw new InvalidOperationException(); 56object IEnumerator.Current => throw new InvalidOperationException();
Microsoft.Extensions.AI.Ollama (2)
src\Shared\EmptyCollections\EmptyReadOnlyList.cs (2)
55public T Current => throw new InvalidOperationException(); 56object IEnumerator.Current => throw new InvalidOperationException();
Microsoft.Extensions.AI.OpenAI (2)
src\Shared\EmptyCollections\EmptyReadOnlyList.cs (2)
55public T Current => throw new InvalidOperationException(); 56object IEnumerator.Current => throw new InvalidOperationException();
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (2)
Providers\FaultProvider.cs (1)
21throw new InvalidOperationException();
Publishers\FaultPublisher.cs (1)
19throw new InvalidOperationException();
Microsoft.Extensions.Http.Diagnostics (2)
src\Shared\EmptyCollections\EmptyReadOnlyList.cs (2)
55public T Current => throw new InvalidOperationException(); 56object IEnumerator.Current => throw new InvalidOperationException();
Microsoft.Extensions.Http.Diagnostics.Tests (1)
Logging\HttpClientLoggerTest.cs (1)
1006Assert.Throws<NotSupportedException>(() => logger.LogRequestFailed(null, httpRequestMessage, null, new InvalidOperationException(), TimeSpan.Zero));
Microsoft.Extensions.Http.Polly.Tests (6)
PolicyHttpMessageHandlerTest.cs (6)
44throw new InvalidOperationException(); 89throw new InvalidOperationException(); 135throw new InvalidOperationException(); 187throw new InvalidOperationException(); 259throw new InvalidOperationException(); 336throw new InvalidOperationException();
Microsoft.Extensions.Http.Resilience.Tests (4)
Hedging\HttpClientHedgingResiliencePredicatesTests.cs (2)
23Assert.False(HttpClientHedgingResiliencePredicates.IsTransientHttpException(new InvalidOperationException())); 32Assert.False(HttpClientHedgingResiliencePredicates.IsTransient(Outcome.FromException<HttpResponseMessage>(new InvalidOperationException())));
Polly\HttpRetryStrategyOptionsTests.cs (1)
121Outcome.FromException<HttpResponseMessage>(new InvalidOperationException()),
Resilience\ResilienceHandlerTest.cs (1)
157handler.InnerHandler = new TestHandlerStub((_, _) => throw new InvalidOperationException());
Microsoft.Extensions.Resilience.Tests (2)
Resilience\ResilienceMetricsEnricherTests.cs (2)
41CreateSut().Enrich(CreateEnrichmentContext<string>(Outcome.FromException<string>(new InvalidOperationException { Source = "my-source" }))); 51CreateSut().Enrich(CreateEnrichmentContext<string>(Outcome.FromException<string>(new InvalidOperationException { Source = "my-source" })));
Microsoft.Extensions.TimeProvider.Testing.Tests (1)
FakeTimeProviderTests.cs (1)
550throw new InvalidOperationException();
Microsoft.Gen.ComplianceReports.Unit.Tests (2)
src\Shared\EmptyCollections\EmptyReadOnlyList.cs (2)
55public T Current => throw new InvalidOperationException(); 56object IEnumerator.Current => throw new InvalidOperationException();
Microsoft.Gen.ContextualOptions.Unit.Tests (2)
src\Shared\EmptyCollections\EmptyReadOnlyList.cs (2)
55public T Current => throw new InvalidOperationException(); 56object IEnumerator.Current => throw new InvalidOperationException();
Microsoft.Gen.Logging.Unit.Tests (3)
CompilationHelper.cs (1)
60throw new InvalidOperationException();
src\Shared\EmptyCollections\EmptyReadOnlyList.cs (2)
55public T Current => throw new InvalidOperationException(); 56object IEnumerator.Current => throw new InvalidOperationException();
Microsoft.Gen.MetadataExtractor.Unit.Tests (2)
src\Shared\EmptyCollections\EmptyReadOnlyList.cs (2)
55public T Current => throw new InvalidOperationException(); 56object IEnumerator.Current => throw new InvalidOperationException();
Microsoft.Gen.Metrics.Unit.Tests (2)
src\Shared\EmptyCollections\EmptyReadOnlyList.cs (2)
55public T Current => throw new InvalidOperationException(); 56object IEnumerator.Current => throw new InvalidOperationException();
Microsoft.Gen.MetricsReports.Unit.Tests (2)
src\Shared\EmptyCollections\EmptyReadOnlyList.cs (2)
55public T Current => throw new InvalidOperationException(); 56object IEnumerator.Current => throw new InvalidOperationException();
Microsoft.Interop.LibraryImportGenerator (1)
Analyzers\NativeMarshallingAttributeAnalyzer.cs (1)
173_ => throw new InvalidOperationException()
Microsoft.Interop.SourceGeneration (8)
DiagnosticOr.cs (2)
39public override T Value => throw new InvalidOperationException(); 50public override ImmutableArray<DiagnosticInfo> Diagnostics => throw new InvalidOperationException();
GeneratorDiagnosticsBag.cs (1)
101throw new InvalidOperationException();
ManualTypeMarshallingHelper.cs (1)
55throw new InvalidOperationException();
Marshalling\MarshallingGeneratorExtensions.cs (3)
27_ => throw new InvalidOperationException() 100_ => throw new InvalidOperationException() 150_ => throw new InvalidOperationException()
StringMarshallingInfoProvider.cs (1)
64_ => throw new InvalidOperationException()
Microsoft.Maui.Controls (4)
ListProxy.cs (1)
388 throw new InvalidOperationException();
RelativeBindingSource.cs (1)
109 throw new InvalidOperationException();
Shapes\Matrix.cs (1)
259 throw new InvalidOperationException();
TemplateBinding.cs (1)
92 throw new InvalidOperationException();
Microsoft.Maui.Controls.Build.Tasks (1)
NodeILExtensions.cs (1)
344 throw new InvalidOperationException();
Microsoft.ML.Core (2)
Utilities\Contracts.cs (2)
256=> Process(new InvalidOperationException()); 258=> Process(new InvalidOperationException(), ctx);
Microsoft.ML.CpuMath (2)
src\Microsoft.ML.Core\Utilities\Contracts.cs (2)
256=> Process(new InvalidOperationException()); 258=> Process(new InvalidOperationException(), ctx);
Microsoft.VisualBasic.Core (1)
Microsoft\VisualBasic\CompilerServices\Utils.LateBinder.vb (1)
528Throw New InvalidOperationException()
Microsoft.VisualBasic.Tests (1)
Microsoft\VisualBasic\ApplicationServices\UnhandledExceptionEventArgsTests.cs (1)
11yield return new object[] { false, new InvalidOperationException() };
Microsoft.VisualStudio.LanguageServices (22)
ChangeSignature\ChangeSignatureDialogViewModel.ParameterViewModels.cs (1)
118set => throw new InvalidOperationException();
CommonControls\NewTypeDestinationSelectionViewModel.cs (1)
115throw new InvalidOperationException();
DocumentOutline\DocumentOutlineView.xaml.cs (1)
266_ => throw new InvalidOperationException(),
EditorConfigSettings\Analyzers\ViewModel\SeverityViewModel.cs (2)
56_ => throw new InvalidOperationException(), 77_ => throw new InvalidOperationException(),
EditorConfigSettings\CodeStyle\ViewModel\CodeStyleSeverityViewModel.cs (2)
57_ => throw new InvalidOperationException(), 71_ => throw new InvalidOperationException(),
EditorConfigSettings\NamingStyle\View\ColumnDefinitions\NamingStylesSeverityColumnDefinition.cs (1)
55_ => throw new InvalidOperationException(),
EditorConfigSettings\NamingStyle\ViewModel\ColumnViewModels\NamingStylesSeverityViewModel.cs (2)
26_ => throw new InvalidOperationException(), 41_ => throw new InvalidOperationException(),
FindReferences\Contexts\WithoutReferencesFindUsagesContext.cs (1)
46=> throw new InvalidOperationException();
LanguageService\AbstractLanguageService`2.cs (1)
124throw new InvalidOperationException();
Library\ObjectBrowser\ObjectList.cs (1)
784throw new InvalidOperationException();
ProjectSystem\VisualStudioWorkspaceImpl.cs (1)
1324_ => throw new InvalidOperationException(),
Utilities\ComEventSink.cs (1)
18throw new InvalidOperationException();
ValueTracking\ValueTrackingToolWindow.cs (1)
35throw new InvalidOperationException();
Venus\ContainedLanguage.IVsContainedLanguageCodeSupport.cs (1)
226throw new InvalidOperationException();
Venus\ContainedLanguageCodeSupport.cs (5)
94throw new InvalidOperationException(); 100throw new InvalidOperationException(); 174throw new InvalidOperationException(); 487throw new InvalidOperationException(); 494throw new InvalidOperationException();
Microsoft.VisualStudio.LanguageServices.CSharp (7)
CodeModel\CSharpCodeModelService.cs (7)
586throw new InvalidOperationException(); 1826throw new InvalidOperationException(); 1836throw new InvalidOperationException(); 1852throw new InvalidOperationException(); 1862throw new InvalidOperationException(); 1895throw new InvalidOperationException(); 2617throw new InvalidOperationException();
MSBuild (4)
CommunicationsUtilities.cs (1)
498throw new InvalidOperationException();
InterningBinaryReader.cs (1)
66throw new InvalidOperationException();
TerminalLogger\Terminal.cs (2)
96throw new InvalidOperationException(); 106throw new InvalidOperationException();
MSBuildTaskHost (2)
CommunicationsUtilities.cs (1)
498throw new InvalidOperationException();
InterningBinaryReader.cs (1)
66throw new InvalidOperationException();
MyFrontend (1)
Services\CatalogServiceClient.cs (1)
15_ => throw new InvalidOperationException(),
PresentationBuildTasks (3)
Microsoft\Build\Tasks\Windows\UidManager.cs (2)
1279throw new InvalidOperationException(); 1289throw new InvalidOperationException();
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\Xaml\Parser\SpecialBracketCharacters.cs (1)
52throw new InvalidOperationException();
PresentationCore (22)
MS\Internal\FontCache\FamilyCollection.cs (1)
549throw new InvalidOperationException();
MS\Internal\Text\TextInterface\DWriteLoader.cs (1)
24throw new InvalidOperationException();
MS\Win32\UnsafeNativeMethodsPenimc.cs (4)
178throw new InvalidOperationException(); 194throw new InvalidOperationException(); 313throw new InvalidOperationException(); 350throw new InvalidOperationException();
src\Microsoft.DotNet.Wpf\src\Shared\Telemetry\Managed\EventSourceActivity.cs (3)
317throw new InvalidOperationException(); 330throw new InvalidOperationException(); 340throw new InvalidOperationException();
System\Windows\Input\InputManager.cs (1)
354throw new InvalidOperationException();
System\Windows\Input\Stylus\Common\StylusPointDescription.cs (1)
245throw new InvalidOperationException();
System\Windows\Input\Stylus\Pointer\PointerStylusDevice.cs (1)
709throw new InvalidOperationException();
System\Windows\Input\Stylus\Wisp\WispLogic.cs (1)
3026InvalidOperationException ioe = new InvalidOperationException();
System\Windows\LayoutManager.cs (1)
50throw new InvalidOperationException();
System\Windows\Markup\XamlSerializerUtil.cs (1)
39throw new InvalidOperationException();
System\Windows\Media\Animation\KeyTime.cs (2)
247throw new InvalidOperationException(); 268throw new InvalidOperationException();
System\Windows\Media\PathGeometry.cs (2)
288throw new System.InvalidOperationException(); 290throw new System.InvalidOperationException();
System\Windows\Nrbf\SerializationRecordExtensions.cs (2)
156_ => throw new InvalidOperationException() 243_ => throw new InvalidOperationException()
System\Windows\PresentationSource.cs (1)
319throw new InvalidOperationException();
PresentationCore.Tests (1)
TestUtilities\BinaryFormatterScope.cs (1)
59throw new InvalidOperationException();
PresentationFramework (26)
Microsoft\Win32\CommonDialog.cs (1)
140throw new InvalidOperationException();
MS\Internal\Controls\EmptyEnumerator.cs (1)
56throw new InvalidOperationException();
MS\Internal\Data\CollectionViewGroupInternal.cs (2)
777throw new InvalidOperationException(); 813throw new InvalidOperationException();
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\Xaml\Parser\SpecialBracketCharacters.cs (1)
52throw new InvalidOperationException();
src\Microsoft.DotNet.Wpf\src\Shared\Telemetry\Managed\EventSourceActivity.cs (3)
317throw new InvalidOperationException(); 330throw new InvalidOperationException(); 340throw new InvalidOperationException();
System\Windows\Automation\Peers\DataGridCellItemAutomationPeer.cs (1)
703throw new InvalidOperationException();
System\Windows\Automation\Peers\DataGridItemAutomationPeer.cs (1)
304throw new InvalidOperationException();
System\Windows\Automation\Peers\PasswordBoxAutomationPeer.cs (1)
109throw new InvalidOperationException();
System\Windows\Controls\DataGridColumnHeaderCollection.cs (3)
111throw new InvalidOperationException(); 119throw new InvalidOperationException(); 135throw new InvalidOperationException();
System\Windows\Controls\MultipleCopiesCollection.cs (4)
291throw new InvalidOperationException(); 352throw new InvalidOperationException(); 377throw new InvalidOperationException(); 389throw new InvalidOperationException();
System\Windows\Controls\TextBlock.cs (1)
4015throw new InvalidOperationException();
System\Windows\Controls\TextRangeAdaptor.cs (2)
2052throw new InvalidOperationException(); 2062throw new InvalidOperationException();
System\Windows\Data\Binding.cs (1)
201throw new InvalidOperationException(); // This is actually never called since CurrentDispatcher will throw if null.
System\Windows\Documents\WinRTSpellerInterop.cs (1)
738throw new InvalidOperationException();
System\Windows\Markup\Primitives\MarkupWriter.cs (1)
1526throw new InvalidOperationException();
System\Windows\PropertyPath.cs (1)
80throw new InvalidOperationException(); // This is actually never called since CurrentDispatcher will throw if null.
System\Windows\VisualStateManager.cs (1)
193throw new InvalidOperationException();
PresentationUI (1)
MS\Internal\Documents\Application\TransactionalPackage.cs (1)
102throw new InvalidOperationException();
ReachFramework (11)
AlphaFlattener\Flattener.cs (9)
1334throw new InvalidOperationException(); 1339throw new InvalidOperationException(); 1344throw new InvalidOperationException(); 1349throw new InvalidOperationException(); 1354throw new InvalidOperationException(); 1359throw new InvalidOperationException(); 1364throw new InvalidOperationException(); 1369throw new InvalidOperationException(); 1419throw new InvalidOperationException();
AlphaFlattener\MetroDevice.cs (2)
73throw new InvalidOperationException(); 134throw new InvalidOperationException();
RoutingSandbox (1)
Program.cs (1)
51throw new InvalidOperationException();
RoutingWebSite (1)
Program.cs (1)
53throw new InvalidOperationException();
Shared (2)
EmptyCollections\EmptyReadOnlyList.cs (2)
55public T Current => throw new InvalidOperationException(); 56object IEnumerator.Current => throw new InvalidOperationException();
System.Collections.Immutable (21)
System\Collections\Immutable\ImmutableArray_1.Enumerator.cs (1)
117throw new InvalidOperationException();
System\Collections\Immutable\ImmutableDictionary_2.HashBucket.cs (5)
67throw new InvalidOperationException(); 170throw new InvalidOperationException(); // unreachable 202throw new InvalidOperationException(); // unreachable 409_ => throw new InvalidOperationException(), 449throw new InvalidOperationException();
System\Collections\Immutable\ImmutableHashSet_1.HashBucket.cs (2)
331_ => throw new InvalidOperationException(), 372throw new InvalidOperationException();
System\Collections\Immutable\ImmutableList_1.Enumerator.cs (1)
132throw new InvalidOperationException();
System\Collections\Immutable\ImmutableQueue_1.Enumerator.cs (4)
56throw new InvalidOperationException(); 70throw new InvalidOperationException(); 147throw new InvalidOperationException(); 161throw new InvalidOperationException();
System\Collections\Immutable\ImmutableSortedDictionary_2.Enumerator.cs (1)
98throw new InvalidOperationException();
System\Collections\Immutable\ImmutableSortedSet_1.Enumerator.cs (1)
115throw new InvalidOperationException();
System\Collections\Immutable\ImmutableStack_1.Enumerator.cs (2)
47throw new InvalidOperationException(); 116throw new InvalidOperationException();
System\Collections\Immutable\SortedInt32KeyNode.Enumerator.cs (1)
84throw new InvalidOperationException();
System\Collections\ThrowHelper.cs (1)
38throw new InvalidOperationException();
System\Linq\ImmutableArrayExtensions.cs (2)
643throw new InvalidOperationException(); 669throw new InvalidOperationException();
System.ComponentModel.TypeConverter (1)
System\ComponentModel\EventDescriptorCollection.cs (1)
450throw new InvalidOperationException();
System.Diagnostics.DiagnosticSource (1)
System\Diagnostics\Metrics\Instrument.cs (1)
192throw new InvalidOperationException();
System.Diagnostics.Process (3)
src\libraries\Common\src\System\IO\StringParser.cs (3)
50throw new InvalidOperationException(); 131throw new InvalidOperationException(); 318throw new InvalidOperationException();
System.Formats.Asn1 (11)
System\Formats\Asn1\AsnCharacterStringEncodings.cs (5)
270throw new InvalidOperationException(); 300throw new InvalidOperationException(); 339throw new InvalidOperationException(); 370throw new InvalidOperationException(); 386throw new InvalidOperationException();
System\Formats\Asn1\AsnDecoder.NamedBitList.cs (1)
348throw new InvalidOperationException();
System\Formats\Asn1\AsnWriter.GeneralizedTime.cs (2)
89throw new InvalidOperationException(); 133throw new InvalidOperationException();
System\Formats\Asn1\AsnWriter.Text.cs (2)
110throw new InvalidOperationException(); 127throw new InvalidOperationException();
System\Formats\Asn1\AsnWriter.UtcTime.cs (1)
109throw new InvalidOperationException();
System.Formats.Cbor (2)
System\Formats\Cbor\Reader\CborReader.String.cs (2)
110throw new InvalidOperationException(); 270throw new InvalidOperationException();
System.Formats.Nrbf (20)
System\Formats\Nrbf\ArrayRectangularPrimitiveRecord.cs (2)
38internal override (AllowedRecordTypes allowed, PrimitiveType primitiveType) GetAllowedRecordType() => throw new InvalidOperationException(); 40private protected override void AddValue(object value) => throw new InvalidOperationException();
System\Formats\Nrbf\ArraySinglePrimitiveRecord.cs (4)
44internal override (AllowedRecordTypes allowed, PrimitiveType primitiveType) GetAllowedRecordType() => throw new InvalidOperationException(); 46private protected override void AddValue(object value) => throw new InvalidOperationException(); 243throw new InvalidOperationException(); 317throw new InvalidOperationException();
System\Formats\Nrbf\ClassWithIdRecord.cs (1)
72_ => throw new InvalidOperationException()
System\Formats\Nrbf\MemberTypeInfo.cs (3)
63throw new InvalidOperationException(); 107_ => throw new InvalidOperationException() 125_ => throw new InvalidOperationException()
System\Formats\Nrbf\NrbfDecoder.cs (5)
240_ => throw new InvalidOperationException() 269_ => throw new InvalidOperationException() 300_ => throw new InvalidOperationException() 326_ => throw new InvalidOperationException() 465throw new InvalidOperationException();
System\Formats\Nrbf\SerializationRecord.cs (2)
163=> throw new InvalidOperationException(); 166=> throw new InvalidOperationException();
System\Formats\Nrbf\Utils\BinaryReaderExtensions.cs (1)
98_ => throw new InvalidOperationException(),
System\Formats\Nrbf\Utils\TypeNameHelpers.cs (2)
50_ => throw new InvalidOperationException() 107throw new InvalidOperationException();
System.IO.IsolatedStorage (1)
System\IO\IsolatedStorage\IsolatedStorageFile.cs (1)
396throw new InvalidOperationException();
System.Linq.Expressions (7)
System\Linq\Expressions\DebugViewWriter.cs (1)
350throw new InvalidOperationException();
System\Linq\Expressions\ExpressionStringBuilder.cs (3)
263throw new InvalidOperationException(); 626throw new InvalidOperationException(); 693_ => throw new InvalidOperationException(),
System\Linq\Expressions\Interpreter\CallInstruction.Generated.cs (2)
187throw new InvalidOperationException(); 210throw new InvalidOperationException();
System\Linq\Expressions\Interpreter\LabelInfo.cs (1)
197throw new InvalidOperationException();
System.Linq.Parallel (2)
System\Linq\Parallel\Merging\OrderPreservingPipeliningMergeHelper.cs (1)
176throw new InvalidOperationException();
System\Linq\Parallel\QueryOperators\Unary\ForAllOperator.cs (1)
106throw new InvalidOperationException();
System.Memory (1)
System\ThrowHelper.cs (1)
40private static InvalidOperationException CreateInvalidOperationException() { return new InvalidOperationException(); }
System.Net.Http (2)
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.Initialization.cs (1)
42throw new InvalidOperationException();
System\Net\Http\Headers\HeaderDescriptor.cs (1)
56public override bool Equals(object? obj) => throw new InvalidOperationException(); // Ensure this is never called, to avoid boxing
System.Net.Mail (1)
System\Net\Mime\Base64Encoder.cs (1)
37throw new InvalidOperationException();
System.Net.NetworkInformation (3)
src\libraries\Common\src\System\IO\StringParser.cs (3)
50throw new InvalidOperationException(); 131throw new InvalidOperationException(); 318throw new InvalidOperationException();
System.Net.Quic (3)
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.Initialization.cs (1)
42throw new InvalidOperationException();
src\libraries\Common\src\System\Net\StreamBuffer.cs (2)
85throw new InvalidOperationException(); 102throw new InvalidOperationException();
System.Net.Requests (1)
System\Net\ProtocolViolationException.cs (1)
24public ProtocolViolationException() : base()
System.Net.Security (10)
src\libraries\Common\src\Interop\Unix\System.Net.Security.Native\Interop.NetSecurityNative.IsNtlmInstalled.cs (1)
29throw new InvalidOperationException();
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.Initialization.cs (1)
42throw new InvalidOperationException();
System\Net\NegotiateAuthenticationPal.ManagedNtlm.cs (1)
218public override IIdentity RemoteIdentity => throw new InvalidOperationException();
System\Net\NegotiateAuthenticationPal.ManagedSpnego.cs (1)
78public override IIdentity RemoteIdentity => _mechanism?.RemoteIdentity ?? throw new InvalidOperationException();
System\Net\NegotiateAuthenticationPal.Unsupported.cs (6)
26public override IIdentity RemoteIdentity => throw new InvalidOperationException(); 52public override NegotiateAuthenticationStatusCode Wrap(ReadOnlySpan<byte> input, IBufferWriter<byte> outputWriter, bool requestEncryption, out bool isEncrypted) => throw new InvalidOperationException(); 53public override NegotiateAuthenticationStatusCode Unwrap(ReadOnlySpan<byte> input, IBufferWriter<byte> outputWriter, out bool wasEncrypted) => throw new InvalidOperationException(); 54public override NegotiateAuthenticationStatusCode UnwrapInPlace(Span<byte> input, out int unwrappedOffset, out int unwrappedLength, out bool wasEncrypted) => throw new InvalidOperationException(); 55public override void GetMIC(ReadOnlySpan<byte> message, IBufferWriter<byte> signature) => throw new InvalidOperationException(); 56public override bool VerifyMIC(ReadOnlySpan<byte> message, ReadOnlySpan<byte> signature) => throw new InvalidOperationException();
System.Net.Sockets (1)
System\Net\Sockets\SocketAsyncContext.Unix.cs (1)
308throw new InvalidOperationException();
System.Private.CoreLib (35)
src\libraries\Common\src\System\IO\StringParser.cs (3)
50throw new InvalidOperationException(); 131throw new InvalidOperationException(); 318throw new InvalidOperationException();
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventSource.cs (2)
4720throw new InvalidOperationException(); 4732throw new InvalidOperationException();
src\libraries\System.Private.CoreLib\src\System\IO\FileStatus.SetTimes.OtherUnix.cs (1)
23throw new InvalidOperationException();
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\ConstructorOnTypeBuilderInstantiation.cs (1)
69throw new InvalidOperationException();
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\FieldOnTypeBuilderInstantiation.cs (2)
69public override object GetValue(object? obj) { throw new InvalidOperationException(); } 70public override void SetValue(object? obj, object? value, BindingFlags invokeAttr, Binder? binder, CultureInfo? culture) { throw new InvalidOperationException(); }
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\MethodBuilderInstantiation.cs (1)
15throw new InvalidOperationException();
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\TypeBuilderInstantiation.cs (2)
37throw new InvalidOperationException(); 236public override int GenericParameterPosition => throw new InvalidOperationException();
src\libraries\System.Private.CoreLib\src\System\Reflection\MemberInfo.cs (1)
41public virtual int MetadataToken => throw new InvalidOperationException();
src\libraries\System.Private.CoreLib\src\System\Reflection\MethodBase.cs (1)
25public virtual MethodBody? GetMethodBody() { throw new InvalidOperationException(); }
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Sources\ManualResetValueTaskSourceCore.cs (1)
112throw new InvalidOperationException(); // not using ThrowHelper.ThrowInvalidOperationException so that the JIT sees ThrowForFailedGetResult as always throwing
src\libraries\System.Private.CoreLib\src\System\ThrowHelper.cs (1)
398throw new InvalidOperationException();
src\libraries\System.Private.CoreLib\src\System\Type.cs (1)
91throw new InvalidOperationException();
src\libraries\System.Reflection.Metadata\src\System\Reflection\Metadata\TypeNameParserHelpers.cs (5)
366throw new InvalidOperationException(); 377throw new InvalidOperationException(); 388throw new InvalidOperationException(); 399throw new InvalidOperationException(); 410throw new InvalidOperationException();
src\System\Reflection\Emit\RuntimeAssemblyBuilder.cs (2)
52throw new InvalidOperationException(); 59throw new InvalidOperationException();
src\System\Reflection\Emit\RuntimeGenericTypeParameterBuilder.cs (2)
178public override Type[] GetGenericArguments() { throw new InvalidOperationException(); } 196public override Type GetGenericTypeDefinition() { throw new InvalidOperationException(); }
src\System\Reflection\Emit\RuntimeMethodBuilder.cs (2)
504public override MethodInfo GetGenericMethodDefinition() { if (!IsGenericMethod) throw new InvalidOperationException(); return this; } 537internal void ThrowIfGeneric() { if (IsGenericMethod && !IsGenericMethodDefinition) throw new InvalidOperationException(); }
src\System\Reflection\Emit\RuntimeModuleBuilder.cs (1)
314throw new InvalidOperationException();
src\System\Reflection\Emit\RuntimeTypeBuilder.cs (2)
1037throw new InvalidOperationException(); 1062public override Type GetGenericTypeDefinition() { if (IsGenericTypeDefinition) return this; if (m_genTypeDef == null) throw new InvalidOperationException(); return m_genTypeDef; }
src\System\Reflection\RtFieldInfo.cs (1)
86public override object GetRawConstantValue() { throw new InvalidOperationException(); }
src\System\Reflection\RuntimeMethodInfo.CoreCLR.cs (1)
455throw new InvalidOperationException();
src\System\Runtime\CompilerServices\RuntimeHelpers.CoreCLR.cs (1)
360throw new InvalidOperationException();
src\System\RuntimeType.CoreCLR.cs (1)
1527throw new InvalidOperationException();
System.Private.DataContractSerialization (9)
System\Runtime\Serialization\MemoryStreamAdapter.cs (1)
79throw new InvalidOperationException();
System\Xml\ValueHandle.cs (3)
200throw new InvalidOperationException(); 526throw new InvalidOperationException(); 655throw new InvalidOperationException();
System\Xml\XmlBaseReader.cs (1)
1976throw new InvalidOperationException();
System\Xml\XmlBaseWriter.cs (3)
1630throw new InvalidOperationException(); 1682throw new InvalidOperationException(); 1722throw new InvalidOperationException();
System\Xml\XmlConverter.cs (1)
1080throw new InvalidOperationException();
System.Private.Windows.Core (9)
System\Private\Windows\BinaryFormat\BinaryFormatWriter.cs (1)
553_ => throw new InvalidOperationException()
System\Private\Windows\BinaryFormat\Serializer\ArraySingleString.StringListAdapter.cs (2)
26: throw new InvalidOperationException(), 27_ => throw new InvalidOperationException()
System\Private\Windows\BinaryFormat\Serializer\MemberTypeInfo.cs (1)
35_ => throw new InvalidOperationException()
System\Private\Windows\Id.cs (1)
30public static implicit operator int(Id value) => value._isNull ? throw new InvalidOperationException() : value._id;
System\Private\Windows\JsonData.cs (1)
127return result ?? throw new InvalidOperationException();
System\Private\Windows\Nrbf\SerializationRecordExtensions.cs (2)
355_ => throw new InvalidOperationException() 442_ => throw new InvalidOperationException()
System\Value.cs (1)
85private static void ThrowInvalidOperation() => throw new InvalidOperationException();
System.Private.Windows.Core.TestUtilities (2)
TestAccessor.cs (2)
195_ => throw new InvalidOperationException() 209throw new InvalidOperationException();
System.Private.Windows.GdiPlus (2)
Windows\Win32\Graphics\Gdi\DeviceContextHdcScope.cs (1)
137throw new InvalidOperationException();
Windows\Win32\Graphics\GdiPlus\GpImageExtensions.cs (1)
41_ => throw new InvalidOperationException()
System.Private.Xml (18)
System\Xml\Core\XsdCachingReader.cs (1)
585throw new InvalidOperationException();
System\Xml\Core\XsdValidatingReader.cs (2)
1562throw new InvalidOperationException(); 2028throw new InvalidOperationException();
System\Xml\Core\XsdValidatingReaderAsync.cs (1)
521throw new InvalidOperationException();
System\Xml\Dom\DocumentXmlWriter.cs (5)
170throw new InvalidOperationException(); 187throw new InvalidOperationException(); 218throw new InvalidOperationException(); 268throw new InvalidOperationException(); 517throw new InvalidOperationException();
System\Xml\Dom\XmlNamedNodeMap.SmallXmlNodeList.cs (1)
156throw new InvalidOperationException();
System\Xml\Schema\ContentValidator.cs (5)
399throw new InvalidOperationException(); 405get { throw new InvalidOperationException(); } 1062throw new InvalidOperationException(); 1068throw new InvalidOperationException(); 1074throw new InvalidOperationException();
System\Xml\Schema\NamespaceList.cs (1)
96throw new InvalidOperationException();
System\Xml\XPath\Internal\NumberFunctions.cs (1)
51_ => throw new InvalidOperationException(),
System\Xml\XPath\Internal\UnionExpr.cs (1)
161public override int CurrentPosition { get { throw new InvalidOperationException(); } }
System.Reflection.Context (2)
System\Reflection\Context\Virtual\VirtualMethodBase.cs (1)
78throw new InvalidOperationException();
System\Reflection\Context\Virtual\VirtualPropertyBase.cs (1)
70get { throw new InvalidOperationException(); }
System.Reflection.Emit (6)
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\MethodBuilderInstantiation.cs (1)
15throw new InvalidOperationException();
System\Reflection\Emit\MethodBuilderImpl.cs (3)
113private void ThrowIfGeneric() { if (IsGenericMethod && !IsGenericMethodDefinition) throw new InvalidOperationException(); } 152throw new InvalidOperationException(); 281public override MethodInfo GetGenericMethodDefinition() => !IsGenericMethod ? throw new InvalidOperationException() : this;
System\Reflection\Emit\TypeBuilderImpl.cs (2)
275throw new InvalidOperationException(); 606throw new InvalidOperationException();
System.Reflection.MetadataLoadContext (3)
System\Reflection\TypeLoading\Fields\RoField.cs (1)
130public sealed override object? GetRawConstantValue() => IsLiteral ? ComputeRawConstantValue() : throw new InvalidOperationException();
System\Reflection\TypeLoading\Methods\RoDefinitionMethod.cs (1)
98public sealed override MethodInfo GetGenericMethodDefinition() => IsGenericMethodDefinition ? this : throw new InvalidOperationException(); // Very uninformative but compatible exception
System\Reflection\TypeLoading\Methods\RoSyntheticMethod.cs (1)
86public sealed override MethodInfo GetGenericMethodDefinition() => throw new InvalidOperationException();
System.Security.Cryptography (5)
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.Initialization.cs (1)
42throw new InvalidOperationException();
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12Builder.cs (1)
200throw new InvalidOperationException();
src\libraries\Common\src\System\Security\Cryptography\RsaPaddingProcessor.cs (1)
639throw new InvalidOperationException();
System\Security\Cryptography\X509Certificates\OpenSslCachedSystemStoreProvider.cs (2)
76throw new InvalidOperationException(); 82throw new InvalidOperationException();
System.Security.Cryptography.Pkcs (3)
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12Builder.cs (1)
200throw new InvalidOperationException();
System\Security\Cryptography\Pkcs\EnvelopedCms.cs (2)
83throw new InvalidOperationException(); 306throw new InvalidOperationException();
System.ServiceModel.NetFramingBase (1)
System\ServiceModel\Channels\FramingChannels.cs (1)
78return ValueTask.FromException(new InvalidOperationException());
System.ServiceModel.Primitives.Tests (1)
ServiceModel\ThrowingOnCloseBindingElement.cs (1)
157throw new InvalidOperationException();
System.Text.Encoding.CodePages (1)
System\Text\BaseCodePageEncoding.cs (1)
240throw new InvalidOperationException();
System.Text.Json (28)
System\Text\Json\Document\JsonElement.cs (1)
1713throw new InvalidOperationException();
System\Text\Json\Schema\JsonSchema.cs (1)
308static void Throw() => throw new InvalidOperationException();
System\Text\Json\Serialization\Converters\Object\ObjectWithParameterizedConstructorConverter.Small.cs (1)
51throw new InvalidOperationException();
System\Text\Json\Serialization\IgnoreReferenceResolver.cs (3)
33public override void AddReference(string referenceId, object value) => throw new InvalidOperationException(); 35public override string GetReference(object value, out bool alreadyExists) => throw new InvalidOperationException(); 37public override object ResolveReference(string referenceId) => throw new InvalidOperationException();
System\Text\Json\Serialization\JsonConverter.cs (2)
110throw new InvalidOperationException(); 117throw new InvalidOperationException();
System\Text\Json\Serialization\JsonConverterFactory.cs (12)
57throw new InvalidOperationException(); 69throw new InvalidOperationException(); 81throw new InvalidOperationException(); 88throw new InvalidOperationException(); 95throw new InvalidOperationException(); 102throw new InvalidOperationException(); 109throw new InvalidOperationException(); 120throw new InvalidOperationException(); 131throw new InvalidOperationException(); 138throw new InvalidOperationException(); 152throw new InvalidOperationException(); 159throw new InvalidOperationException();
System\Text\Json\Serialization\JsonConverterOfT.cs (2)
684=> throw new InvalidOperationException(); 687=> throw new InvalidOperationException();
System\Text\Json\Serialization\Metadata\ReflectionEmitMemberAccessor.cs (1)
146_ => throw new InvalidOperationException()
System\Text\Json\Serialization\Metadata\ReflectionMemberAccessor.cs (1)
107throw new InvalidOperationException();
System\Text\Json\Serialization\PreserveReferenceHandler.cs (1)
8public override ReferenceResolver CreateResolver() => throw new InvalidOperationException();
System\Text\Json\Serialization\ReferenceResolver.cs (3)
39internal virtual void PopReferenceForCycleDetection() => throw new InvalidOperationException(); 41internal virtual void PushReferenceForCycleDetection(object value) => throw new InvalidOperationException(); 43internal virtual bool ContainsReferenceForCycleDetection(object value) => throw new InvalidOperationException();
System.Text.Json.SourceGeneration (2)
JsonSourceGenerator.Parser.cs (2)
416throw new InvalidOperationException(); 475throw new InvalidOperationException();
System.Transactions.Local (11)
System\Transactions\TransactionState.cs (11)
306throw new InvalidOperationException(); 318throw new InvalidOperationException(); 330throw new InvalidOperationException(); 342throw new InvalidOperationException(); 354throw new InvalidOperationException(); 366throw new InvalidOperationException(); 378throw new InvalidOperationException(); 390throw new InvalidOperationException(); 402throw new InvalidOperationException(); 430throw new InvalidOperationException(); 4336throw new InvalidOperationException();
System.Windows.Controls.Ribbon (1)
Microsoft\Windows\Automation\Peers\RibbonGalleryItemDataAutomationPeer.cs (1)
96throw new InvalidOperationException();
System.Windows.Forms (41)
System\Windows\Forms\Controls\DataGridView\DataGridView.DataConnection.cs (1)
605throw new InvalidOperationException();
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (4)
19856throw new InvalidOperationException(); 19896throw new InvalidOperationException(); 26482throw new InvalidOperationException(); 30127throw new InvalidOperationException();
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (6)
1051throw new InvalidOperationException(); 1732throw new InvalidOperationException(); 1882throw new InvalidOperationException(); 2420throw new InvalidOperationException(); 2466throw new InvalidOperationException(); 3792throw new InvalidOperationException();
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.cs (1)
714throw new InvalidOperationException();
System\Windows\Forms\Controls\DataGridView\DataGridViewRowCollection.RowComparer.cs (1)
79throw new InvalidOperationException();
System\Windows\Forms\Controls\DataGridView\DataGridViewTextBoxCell.cs (1)
124throw new InvalidOperationException();
System\Windows\Forms\Controls\ListView\ListViewItem.cs (1)
264_ => throw new InvalidOperationException()
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (4)
1990throw new InvalidOperationException(); 2088throw new InvalidOperationException(); 2427throw new InvalidOperationException(); 2474throw new InvalidOperationException();
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.cs (3)
1519throw new InvalidOperationException(); 1685throw new InvalidOperationException(); 1797throw new InvalidOperationException();
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyDescriptorGridEntry.cs (3)
584throw new InvalidOperationException(); 653throw new InvalidOperationException(); 836throw new InvalidOperationException();
System\Windows\Forms\Dialogs\TaskDialog\TaskDialog.cs (1)
1585throw new InvalidOperationException();
System\Windows\Forms\Dialogs\TaskDialog\TaskDialogButton.cs (3)
298internal TaskDialogResult StandardButtonResult => _standardButtonResult ?? throw new InvalidOperationException(); 380throw new InvalidOperationException(); 410? throw new InvalidOperationException()
System\Windows\Forms\Dialogs\TaskDialog\TaskDialogIcon.cs (2)
180public IntPtr IconHandle => _iconHandle ?? throw new InvalidOperationException(); 182internal TaskDialogStandardIcon StandardIcon => _standardIcon ?? throw new InvalidOperationException();
System\Windows\Forms\Dialogs\TaskDialog\TaskDialogPage.cs (5)
709throw new InvalidOperationException(); 736throw new InvalidOperationException(); 845throw new InvalidOperationException(); 966throw new InvalidOperationException(); 1001throw new InvalidOperationException();
System\Windows\Forms\Layout\TableLayout.SorterObjectArray.cs (2)
39throw new InvalidOperationException(); 83throw new InvalidOperationException();
System\Windows\Forms\SendKeys\SendKeys.cs (2)
312throw new InvalidOperationException(); 323throw new InvalidOperationException();
System\Windows\Forms\WindowSubclassHandler.cs (1)
91throw new InvalidOperationException();
System.Windows.Forms.Design (21)
System\ComponentModel\Design\DesignerHost.cs (1)
955throw new InvalidOperationException();
System\ComponentModel\Design\ReferenceService.cs (1)
81throw new InvalidOperationException();
System\ComponentModel\Design\Serialization\BasicDesignerLoader.cs (2)
905throw new InvalidOperationException(); 925throw new InvalidOperationException();
System\ComponentModel\Design\Serialization\StatementContext.cs (3)
65throw new InvalidOperationException(); 214throw new InvalidOperationException(); 219throw new InvalidOperationException();
System\ComponentModel\Design\Serialization\TypeCodeDomSerializer.cs (3)
111?? throw new InvalidOperationException(); 498?? throw new InvalidOperationException(); 520?? throw new InvalidOperationException();
System\Windows\Forms\Design\Behavior\BehaviorService.cs (1)
391throw new InvalidOperationException();
System\Windows\Forms\Design\ControlDesigner.cs (1)
738throw new InvalidOperationException();
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (1)
80?? throw new InvalidOperationException());
System\Windows\Forms\Design\DesignBindingPicker.cs (1)
163?? throw new InvalidOperationException());
System\Windows\Forms\Design\DesignerToolStripControlHost.cs (2)
41throw new InvalidOperationException(); 49throw new InvalidOperationException();
System\Windows\Forms\Design\ListAdapter.cs (1)
22get => (T?)_list[index] ?? throw new InvalidOperationException();
System\Windows\Forms\Design\SelectionUIService.cs (3)
924throw new InvalidOperationException(); 1115throw new InvalidOperationException(); 1235throw new InvalidOperationException();
System\Windows\Forms\Design\VsPropertyGrid.cs (1)
24BitmapSelector.GetResourceStream(typeof(PropertyGrid), resourceName) ?? throw new InvalidOperationException(),
System.Windows.Forms.Design.Tests (27)
System\ComponentModel\Design\CollectionFormTests.cs (1)
726InvalidOperationException exception = new();
System\ComponentModel\Design\ComponentDesignerTests.cs (2)
1315.Throws(new InvalidOperationException()) 1397.Throws(new InvalidOperationException())
System\ComponentModel\Design\DesignerActionMethodItemTests.cs (2)
260throw new InvalidOperationException(); 265throw new InvalidOperationException();
System\ComponentModel\Design\DesignerHostTests.cs (6)
2189yield return new object[] { null, true, new object[] { new InvalidOperationException() } }; 2194yield return new object[] { null, false, new object[] { new InvalidOperationException() } }; 2199yield return new object[] { string.Empty, true, new object[] { new InvalidOperationException() } }; 2204yield return new object[] { string.Empty, false, new object[] { new InvalidOperationException() } }; 2208yield return new object[] { "baseClassName", true, new object[] { new InvalidOperationException() } }; 2212yield return new object[] { "baseClassName", false, new object[] { new InvalidOperationException() } };
System\ComponentModel\Design\DesignSurfaceTests.cs (6)
351InvalidOperationException exception = new(); 365yield return new object[] { new object[] { new InvalidOperationException() } }; 432InvalidOperationException exception = new(); 478InvalidOperationException exception = new(); 580.Throws(new InvalidOperationException()) 907throw new InvalidOperationException();
System\ComponentModel\Design\ExceptionCollectionTests.cs (3)
16yield return new object[] { new ArrayList { new InvalidOperationException(), new InvalidOperationException(), new InvalidOperationException() } };
System\ComponentModel\Design\Serialization\CodeDomSerializerExceptionTests.cs (3)
32yield return new object[] { new InvalidOperationException(), new CodeLinePragma() }; 66yield return new object[] { new InvalidOperationException(), mockDesignerSerializationManager.Object }; 84Assert.Throws<ArgumentNullException>("manager", () => new CodeDomSerializerException(new InvalidOperationException(), (IDesignerSerializationManager)null));
System\Drawing\Design\ToolboxItemTests.cs (4)
555.Throws(new InvalidOperationException()); 558.Throws(new InvalidOperationException()); 874.Throws(new InvalidOperationException()); 877.Throws(new InvalidOperationException());
System.Windows.Forms.Primitives (2)
System\Windows\Forms\SinglyLinkedList.cs (2)
142throw new InvalidOperationException(); 188throw new InvalidOperationException();
System.Windows.Forms.Primitives.TestUtilities (1)
Metafiles\Validators\RepeatValidator.cs (1)
24throw new InvalidOperationException();
System.Windows.Forms.Tests (13)
ExceptionHandlingTests.cs (1)
28throw new InvalidOperationException();
System\Windows\Forms\BinaryFormat\WinFormsBinaryFormattedObjectTests.cs (2)
103return result ?? throw new InvalidOperationException(); 117throw new InvalidOperationException();
System\Windows\Forms\BindingCompleteEventArgsTests.cs (2)
49yield return new object[] { new Binding(null, new object(), "member"), BindingCompleteState.DataError, BindingCompleteContext.DataSourceUpdate, "errorText", new InvalidOperationException() }; 68yield return new object[] { new Binding(null, new object(), "member"), BindingCompleteState.DataError, BindingCompleteContext.DataSourceUpdate, "errorText", new InvalidOperationException(), true };
System\Windows\Forms\BindingManagerDataErrorEventArgsTests.cs (1)
11yield return new object[] { new InvalidOperationException() };
System\Windows\Forms\DataGridViewDataErrorEventArgsTests.cs (3)
12yield return new object[] { new InvalidOperationException(), 0, 0, DataGridViewDataErrorContexts.Formatting }; 13yield return new object[] { new InvalidOperationException(), 1, 2, DataGridViewDataErrorContexts.Formatting }; 46DataGridViewDataErrorEventArgs e = new(new InvalidOperationException(), 1, 2, DataGridViewDataErrorContexts.Formatting) { ThrowException = value };
System\Windows\Forms\DataGridViewElementTests.cs (2)
254yield return new object[] { new DataGridViewDataErrorEventArgs(new InvalidOperationException(), 1, 2, DataGridViewDataErrorContexts.Formatting) }; 268DataGridViewDataErrorEventArgs eventArgs = new(new InvalidOperationException(), 1, 2, DataGridViewDataErrorContexts.Formatting);
System\Windows\Forms\FeatureSupportTests.cs (1)
175throw new InvalidOperationException();
System\Windows\Forms\ListControlTests.cs (1)
3062throw new InvalidOperationException();
System.Windows.Forms.UI.IntegrationTests (1)
Infra\ScreenRecordService.cs (1)
416throw new InvalidOperationException();
System.Xaml (1)
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\Xaml\Parser\SpecialBracketCharacters.cs (1)
52throw new InvalidOperationException();
UIAutomationClient (1)
MS\Internal\Automation\Misc.cs (1)
251throw new InvalidOperationException();
UIAutomationClientSideProviders (6)
MS\Internal\AutomationProxies\Misc.cs (1)
1696throw new InvalidOperationException();
MS\Internal\AutomationProxies\WindowsEditBox.cs (1)
883throw new InvalidOperationException();
MS\Internal\AutomationProxies\WindowsEditBoxRange.cs (2)
445throw new InvalidOperationException(); 450throw new InvalidOperationException();
MS\Internal\AutomationProxies\WindowsRichEditRange.cs (2)
337throw new InvalidOperationException(); 342throw new InvalidOperationException();
VBCSCompiler (3)
src\Compilers\Server\VBCSCompiler\NamedPipeClientConnectionHost.cs (3)
51throw new InvalidOperationException(); 82throw new InvalidOperationException(); 139throw new InvalidOperationException();
VBCSCompiler.UnitTests (2)
BuildClientTests.cs (1)
63compileOnServerFunc ??= delegate { throw new InvalidOperationException(); };
ServerUtil.cs (1)
217throw new InvalidOperationException();
VisualBasicRuntimeTest (7)
Program.cs (7)
114throw new InvalidOperationException(); 119throw new InvalidOperationException(); 124throw new InvalidOperationException(); 137throw new InvalidOperationException(); 145throw new InvalidOperationException(); 161throw new InvalidOperationException(); 169throw new InvalidOperationException();
WinFormsControlsTest (2)
FormShowInTaskbar.cs (2)
52throw new InvalidOperationException(); 55throw new InvalidOperationException();