495 references to InvalidOperationException
AssemblyStripper (14)
.packages\microsoft.dotnet.cilstrip.sources\9.0.0-beta.24256.1\contentFiles\cs\netstandard2.0\Mono.Cecil\FunctionPointerType.cs (2)
68 set { throw new InvalidOperationException (); } 73 set { throw new InvalidOperationException (); }
.packages\microsoft.dotnet.cilstrip.sources\9.0.0-beta.24256.1\contentFiles\cs\netstandard2.0\Mono.Cecil\GenericParameter.cs (4)
75 throw new InvalidOperationException (); 86 throw new InvalidOperationException (); 100 throw new InvalidOperationException (); 107 set { throw new InvalidOperationException (); }
.packages\microsoft.dotnet.cilstrip.sources\9.0.0-beta.24256.1\contentFiles\cs\netstandard2.0\Mono.Cecil\MethodSpecification.cs (6)
44 set { throw new InvalidOperationException (); } 49 set { throw new InvalidOperationException (); } 54 set { throw new InvalidOperationException (); } 59 set { throw new InvalidOperationException (); } 64 set { throw new InvalidOperationException (); } 69 set { throw new InvalidOperationException (); }
.packages\microsoft.dotnet.cilstrip.sources\9.0.0-beta.24256.1\contentFiles\cs\netstandard2.0\Mono.Cecil\TypeSpecification.cs (2)
49 set { throw new InvalidOperationException (); } 58 set { throw new InvalidOperationException (); }
BasicWebSite (1)
Filters\RequestIdService.cs (1)
13throw new InvalidOperationException();
FormatterWebSite (1)
Controllers\ValidationController.cs (1)
40throw new InvalidOperationException();
http2cat (4)
src\Shared\ServerInfrastructure\StringUtilities.cs (4)
36throw new InvalidOperationException(); 45throw new InvalidOperationException(); 88throw new InvalidOperationException(); 113throw new InvalidOperationException();
IIS.FunctionalTests (4)
src\Shared\ServerInfrastructure\StringUtilities.cs (4)
36throw new InvalidOperationException(); 45throw new InvalidOperationException(); 88throw new InvalidOperationException(); 113throw new InvalidOperationException();
IIS.LongTests (4)
src\Shared\ServerInfrastructure\StringUtilities.cs (4)
36throw new InvalidOperationException(); 45throw new InvalidOperationException(); 88throw new InvalidOperationException(); 113throw new InvalidOperationException();
IIS.NewHandler.FunctionalTests (4)
src\Shared\ServerInfrastructure\StringUtilities.cs (4)
36throw new InvalidOperationException(); 45throw new InvalidOperationException(); 88throw new InvalidOperationException(); 113throw new InvalidOperationException();
IIS.NewShim.FunctionalTests (4)
src\Shared\ServerInfrastructure\StringUtilities.cs (4)
36throw new InvalidOperationException(); 45throw new InvalidOperationException(); 88throw new InvalidOperationException(); 113throw new InvalidOperationException();
IIS.ShadowCopy.Tests (4)
src\Shared\ServerInfrastructure\StringUtilities.cs (4)
36throw new InvalidOperationException(); 45throw new InvalidOperationException(); 88throw new InvalidOperationException(); 113throw new InvalidOperationException();
IISExpress.FunctionalTests (4)
src\Shared\ServerInfrastructure\StringUtilities.cs (4)
36throw new InvalidOperationException(); 45throw new InvalidOperationException(); 88throw new InvalidOperationException(); 113throw new InvalidOperationException();
ILCompiler.DependencyAnalysisFramework (1)
DependencyAnalyzer.cs (1)
134throw new InvalidOperationException();
illink (13)
ILLink.RoslynAnalyzer (6)
DataFlow\ControlFlowGraphProxy.cs (3)
43 _ => throw new InvalidOperationException () 157 throw new InvalidOperationException (); 203 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)
68 _ => throw new InvalidOperationException ()
InMemory.FunctionalTests (6)
ConnectionMiddlewareTests.cs (2)
154listenOptions.Use(next => context => throw new InvalidOperationException()); 237throw new InvalidOperationException();
EventSourceTests.cs (1)
173throw new InvalidOperationException();
Http2\Http2EndToEndTests.cs (1)
55throw new InvalidOperationException();
KestrelMetricsTests.cs (1)
364throw new InvalidOperationException();
src\Servers\Kestrel\shared\test\CertificateAuthority.cs (1)
207throw new InvalidOperationException();
Interop.FunctionalTests (3)
Http3\Http3RequestTests.cs (3)
754throw new InvalidOperationException(); 1343throw new InvalidOperationException(); 1635throw new InvalidOperationException();
KeyManagementSimulator (1)
Program.cs (1)
273_ => throw 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.Diagnostics.EntityFrameworkCore.Tests (1)
DatabaseDeveloperPageExceptionFilterTests.cs (1)
31new ErrorContext(context.Object, 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()); 3827throw 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)
1645_ => 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 (4)
src\Shared\ServerInfrastructure\StringUtilities.cs (4)
36throw new InvalidOperationException(); 45throw new InvalidOperationException(); 88throw new InvalidOperationException(); 113throw new InvalidOperationException();
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (1)
ServerTests.cs (1)
212throw new InvalidOperationException();
Microsoft.AspNetCore.Server.IIS (4)
src\Shared\ServerInfrastructure\StringUtilities.cs (4)
36throw new InvalidOperationException(); 45throw new InvalidOperationException(); 88throw new InvalidOperationException(); 113throw new InvalidOperationException();
Microsoft.AspNetCore.Server.Kestrel.Core (4)
src\Shared\ServerInfrastructure\StringUtilities.cs (4)
36throw new InvalidOperationException(); 45throw new InvalidOperationException(); 88throw new InvalidOperationException(); 113throw new InvalidOperationException();
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (6)
KestrelServerTests.cs (4)
605var unbindException = new InvalidOperationException(); 1015throw new InvalidOperationException(); 1023throw new InvalidOperationException(); 1033throw 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)
1761serverOptions.ConfigurationLoader.LocalhostEndpoint(5001, _ => throw new InvalidOperationException());
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (4)
src\Shared\ServerInfrastructure\StringUtilities.cs (4)
36throw new InvalidOperationException(); 45throw new InvalidOperationException(); 88throw new InvalidOperationException(); 113throw 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 (4)
src\Shared\ServerInfrastructure\StringUtilities.cs (4)
36throw new InvalidOperationException(); 45throw new InvalidOperationException(); 88throw new InvalidOperationException(); 113throw 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 (9)
Collections\RetrievableEntryHashSet\HashSet.cs (4)
599throw new InvalidOperationException(); 974throw new InvalidOperationException(); 1006throw new InvalidOperationException(); 1016throw new InvalidOperationException();
CommunicationsUtilities.cs (1)
498throw new InvalidOperationException();
Construction\ProjectElementContainer.cs (2)
880throw new InvalidOperationException(); 987throw new InvalidOperationException();
InprocTrackingNativeMethods.cs (1)
223throw 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.Core (2)
BootstrapperUtil\Product.cs (1)
35throw new InvalidOperationException();
InterningBinaryReader.cs (1)
66throw new InvalidOperationException();
Microsoft.Build.Utilities.UnitTests (1)
TaskLoggingHelper_Tests.cs (1)
248Exception inner = 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.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.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() 101_ => throw new InvalidOperationException() 150_ => throw new InvalidOperationException()
StringMarshallingInfoProvider.cs (1)
64_ => throw new InvalidOperationException()
Microsoft.VisualBasic.Core (1)
Microsoft\VisualBasic\CompilerServices\Utils.LateBinder.vb (1)
528Throw 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();
PresentationBuildTasks (3)
Microsoft\Build\Tasks\Windows\UidManager.cs (2)
1300throw new InvalidOperationException(); 1310throw new InvalidOperationException();
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\Xaml\Parser\SpecialBracketCharacters.cs (1)
53throw new InvalidOperationException();
PresentationCore (20)
MS\Internal\FontCache\FamilyCollection.cs (1)
564throw new InvalidOperationException();
MS\Internal\Text\TextInterface\DWriteLoader.cs (1)
25throw new InvalidOperationException();
MS\Win32\UnsafeNativeMethodsPenimc.cs (4)
184throw new InvalidOperationException(); 200throw new InvalidOperationException(); 319throw new InvalidOperationException(); 356throw new InvalidOperationException();
src\Microsoft.DotNet.Wpf\src\Shared\Telemetry\Managed\EventSourceActivity.cs (3)
318throw new InvalidOperationException(); 331throw new InvalidOperationException(); 341throw new InvalidOperationException();
System\Windows\Input\InputManager.cs (1)
367throw new InvalidOperationException();
System\Windows\Input\Stylus\Common\StylusPointDescription.cs (1)
255throw new InvalidOperationException();
System\Windows\Input\Stylus\Pointer\PointerStylusDevice.cs (1)
732throw new InvalidOperationException();
System\Windows\Input\Stylus\Wisp\WispLogic.cs (1)
3012InvalidOperationException ioe = new InvalidOperationException();
System\Windows\LayoutManager.cs (1)
66throw new InvalidOperationException();
System\Windows\Markup\XamlSerializerUtil.cs (1)
40throw new InvalidOperationException();
System\Windows\Media\Animation\KeyTime.cs (2)
251throw new InvalidOperationException(); 273throw new InvalidOperationException();
System\Windows\Media\PathGeometry.cs (2)
312throw new System.InvalidOperationException(); 314throw new System.InvalidOperationException();
System\Windows\PresentationSource.cs (1)
331throw new InvalidOperationException();
PresentationFramework (26)
Microsoft\Win32\CommonDialog.cs (1)
163throw new InvalidOperationException();
MS\Internal\Controls\EmptyEnumerator.cs (1)
62throw new InvalidOperationException();
MS\Internal\Data\CollectionViewGroupInternal.cs (2)
804throw new InvalidOperationException(); 840throw new InvalidOperationException();
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\Xaml\Parser\SpecialBracketCharacters.cs (1)
53throw new InvalidOperationException();
src\Microsoft.DotNet.Wpf\src\Shared\Telemetry\Managed\EventSourceActivity.cs (3)
318throw new InvalidOperationException(); 331throw new InvalidOperationException(); 341throw new InvalidOperationException();
System\Windows\Automation\Peers\DataGridCellItemAutomationPeer.cs (1)
712throw new InvalidOperationException();
System\Windows\Automation\Peers\DataGridItemAutomationPeer.cs (1)
309throw new InvalidOperationException();
System\Windows\Automation\Peers\PasswordBoxAutomationPeer.cs (1)
121throw new InvalidOperationException();
System\Windows\Controls\DataGridColumnHeaderCollection.cs (3)
115throw new InvalidOperationException(); 123throw new InvalidOperationException(); 139throw new InvalidOperationException();
System\Windows\Controls\MultipleCopiesCollection.cs (4)
294throw new InvalidOperationException(); 355throw new InvalidOperationException(); 380throw new InvalidOperationException(); 392throw new InvalidOperationException();
System\Windows\Controls\TextBlock.cs (1)
4034throw new InvalidOperationException();
System\Windows\Controls\TextRangeAdaptor.cs (2)
2054throw new InvalidOperationException(); 2064throw new InvalidOperationException();
System\Windows\Data\Binding.cs (1)
226throw new InvalidOperationException(); // This is actually never called since CurrentDispatcher will throw if null.
System\Windows\Documents\WinRTSpellerInterop.cs (1)
749throw new InvalidOperationException();
System\Windows\Markup\Primitives\MarkupWriter.cs (1)
1531throw new InvalidOperationException();
System\Windows\PropertyPath.cs (1)
83throw new InvalidOperationException(); // This is actually never called since CurrentDispatcher will throw if null.
System\Windows\VisualStateManager.cs (1)
198throw new InvalidOperationException();
PresentationUI (1)
MS\Internal\Documents\Application\TransactionalPackage.cs (1)
107throw new InvalidOperationException();
ReachFramework (11)
AlphaFlattener\Flattener.cs (9)
1336throw new InvalidOperationException(); 1341throw new InvalidOperationException(); 1346throw new InvalidOperationException(); 1351throw new InvalidOperationException(); 1356throw new InvalidOperationException(); 1361throw new InvalidOperationException(); 1366throw new InvalidOperationException(); 1371throw new InvalidOperationException(); 1421throw new InvalidOperationException();
AlphaFlattener\MetroDevice.cs (2)
79throw new InvalidOperationException(); 140throw new InvalidOperationException();
RoutingSandbox (1)
Program.cs (1)
51throw new InvalidOperationException();
RoutingWebSite (1)
Program.cs (1)
53throw 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)
34throw 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)
173throw 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 (14)
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.cs (3)
310throw new InvalidOperationException(); 421throw new InvalidOperationException(new InvalidOperationException().Message, e); 772throw 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.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 (36)
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)
4555throw new InvalidOperationException(); 4567throw 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)
404throw new InvalidOperationException();
src\libraries\System.Private.CoreLib\src\System\Type.cs (1)
90throw new InvalidOperationException();
src\libraries\System.Reflection.Metadata\src\System\Reflection\Metadata\TypeNameParserHelpers.cs (5)
344throw new InvalidOperationException(); 355throw new InvalidOperationException(); 366throw new InvalidOperationException(); 377throw new InvalidOperationException(); 388throw new InvalidOperationException();
src\System\Reflection\Emit\RuntimeAssemblyBuilder.cs (2)
52throw new InvalidOperationException(); 62throw 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)
317throw 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)
461throw new InvalidOperationException();
src\System\Runtime\CompilerServices\RuntimeHelpers.CoreCLR.cs (2)
230throw new InvalidOperationException(); 242throw new InvalidOperationException();
src\System\RuntimeType.CoreCLR.cs (1)
1561throw 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)
1082throw 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 (6)
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.Initialization.cs (1)
42throw new InvalidOperationException();
src\libraries\Common\src\System\Security\Cryptography\RsaPaddingProcessor.cs (1)
635throw new InvalidOperationException();
System\Security\Cryptography\X509Certificates\OpenSslCachedSystemStoreProvider.cs (2)
76throw new InvalidOperationException(); 82throw new InvalidOperationException();
System\Security\Cryptography\X509Certificates\UnixExportProvider.cs (2)
307throw new InvalidOperationException(); 471throw new InvalidOperationException();
System.Text.Encoding.CodePages (1)
System\Text\BaseCodePageEncoding.cs (1)
240throw new InvalidOperationException();
System.Text.Json (30)
System\Text\Json\Document\JsonElement.cs (1)
1474throw new InvalidOperationException();
System\Text\Json\Serialization\Converters\Object\ObjectWithParameterizedConstructorConverter.Small.cs (2)
51throw new InvalidOperationException(); 109throw new InvalidOperationException();
System\Text\Json\Serialization\Converters\Value\EnumConverter.cs (1)
469_ => throw 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)
104throw new InvalidOperationException(); 111throw new InvalidOperationException();
System\Text\Json\Serialization\JsonConverterFactory.cs (12)
61throw new InvalidOperationException(); 73throw new InvalidOperationException(); 85throw new InvalidOperationException(); 92throw new InvalidOperationException(); 99throw new InvalidOperationException(); 106throw new InvalidOperationException(); 113throw new InvalidOperationException(); 124throw new InvalidOperationException(); 135throw new InvalidOperationException(); 142throw new InvalidOperationException(); 156throw new InvalidOperationException(); 163throw new InvalidOperationException();
System\Text\Json\Serialization\JsonConverterOfT.cs (2)
684=> throw new InvalidOperationException(); 687=> throw new InvalidOperationException();
System\Text\Json\Serialization\Metadata\JsonTypeInfo.cs (1)
1322throw new InvalidOperationException();
System\Text\Json\Serialization\Metadata\ReflectionEmitMemberAccessor.cs (1)
152_ => throw new InvalidOperationException()
System\Text\Json\Serialization\Metadata\ReflectionMemberAccessor.cs (1)
109throw 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)
401throw new InvalidOperationException(); 457throw 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)
100throw new InvalidOperationException();
System.Xaml (1)
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\Xaml\Parser\SpecialBracketCharacters.cs (1)
53throw new InvalidOperationException();
UIAutomationClient (1)
MS\Internal\Automation\Misc.cs (1)
260throw new InvalidOperationException();
UIAutomationClientSideProviders (6)
MS\Internal\AutomationProxies\Misc.cs (1)
1716throw new InvalidOperationException();
MS\Internal\AutomationProxies\WindowsEditBox.cs (1)
885throw new InvalidOperationException();
MS\Internal\AutomationProxies\WindowsEditBoxRange.cs (2)
451throw new InvalidOperationException(); 456throw new InvalidOperationException();
MS\Internal\AutomationProxies\WindowsRichEditRange.cs (2)
344throw new InvalidOperationException(); 349throw new InvalidOperationException();