302 references to ThrowIf
aspire (2)
Backchannel\AppHostAuxiliaryBackchannel.cs (1)
97ObjectDisposedException.ThrowIf(_disposed, this);
Projects\AppHostServerSession.cs (1)
47ObjectDisposedException.ThrowIf(_disposed, nameof(AppHostServerSession));
Aspire.Dashboard (1)
ServiceClient\DashboardClient.cs (1)
241ObjectDisposedException.ThrowIf(priorState is StateDisposed, this);
Aspire.Hosting (9)
Dcp\KubernetesService.cs (9)
128ObjectDisposedException.ThrowIf(_disposed, this); 161ObjectDisposedException.ThrowIf(_disposed, this); 196ObjectDisposedException.ThrowIf(_disposed, this); 226ObjectDisposedException.ThrowIf(_disposed, this); 260ObjectDisposedException.ThrowIf(_disposed, this); 315ObjectDisposedException.ThrowIf(_disposed, this); 365ObjectDisposedException.ThrowIf(_disposed, this); 389ObjectDisposedException.ThrowIf(_disposed, this); 561ObjectDisposedException.ThrowIf(_disposed, this);
Aspire.Hosting.RemoteHost (3)
CancellationTokenRegistry.cs (3)
27ObjectDisposedException.ThrowIf(_disposed, this); 49ObjectDisposedException.ThrowIf(_disposed, this); 128ObjectDisposedException.ThrowIf(_disposed, this);
Aspire.Hosting.Testing (5)
DistributedApplicationFactory.cs (5)
48ObjectDisposedException.ThrowIf(_disposingCts.IsCancellationRequested, this); 71ObjectDisposedException.ThrowIf(_disposingCts.IsCancellationRequested, this); 85ObjectDisposedException.ThrowIf(_disposingCts.IsCancellationRequested, this); 99ObjectDisposedException.ThrowIf(_disposingCts.IsCancellationRequested, this); 115ObjectDisposedException.ThrowIf(_disposingCts.IsCancellationRequested, this);
dotnet (1)
MSBuildSession.cs (1)
99ObjectDisposedException.ThrowIf(_disposed, this);
Microsoft.AspNetCore.Components (2)
OwningComponentBase.cs (2)
40ObjectDisposedException.ThrowIf(IsDisposed, this); 116ObjectDisposedException.ThrowIf(IsDisposed, this);
Microsoft.AspNetCore.Components.AI (1)
Engine\UIAgent.cs (1)
106ObjectDisposedException.ThrowIf(_disposed, this);
Microsoft.AspNetCore.Http (1)
Internal\ReferenceReadStream.cs (1)
150ObjectDisposedException.ThrowIf(_disposed, this);
Microsoft.AspNetCore.Http.Connections.Client (1)
src\aspnetcore\src\Shared\ThrowHelpers\ObjectDisposedThrowHelper.cs (1)
26ObjectDisposedException.ThrowIf(condition, instance);
Microsoft.AspNetCore.Identity.EntityFrameworkCore (1)
RoleStore.cs (1)
322ObjectDisposedException.ThrowIf(_disposed, this);
Microsoft.AspNetCore.Mvc.ViewFeatures (1)
Buffers\MemoryPoolViewBufferScope.cs (1)
39ObjectDisposedException.ThrowIf(_disposed, this);
Microsoft.AspNetCore.OutputCaching.StackExchangeRedis (1)
src\aspnetcore\src\Shared\ThrowHelpers\ObjectDisposedThrowHelper.cs (1)
26ObjectDisposedException.ThrowIf(condition, instance);
Microsoft.AspNetCore.Server.HttpSys (4)
HttpSysListener.cs (1)
394ObjectDisposedException.ThrowIf(_state == State.Disposed, this);
NativeInterop\RequestQueue.cs (1)
204ObjectDisposedException.ThrowIf(_disposed, this);
NativeInterop\UrlGroup.cs (1)
238ObjectDisposedException.ThrowIf(_disposed, this);
RequestProcessing\ResponseBody.cs (1)
779ObjectDisposedException.ThrowIf(_disposed, this);
Microsoft.AspNetCore.Server.IIS (1)
Core\WrappingStream.cs (1)
18ObjectDisposedException.ThrowIf(_disposed, this);
Microsoft.AspNetCore.Server.Kestrel.Core (1)
Internal\Infrastructure\WrappingStream.cs (1)
18ObjectDisposedException.ThrowIf(_disposed, this);
Microsoft.AspNetCore.Server.Kestrel.Transport.DirectTls (1)
Connection\DirectTlsConnection.FeatureCollection.cs (1)
109ObjectDisposedException.ThrowIf(Volatile.Read(ref _disposed) != 0, this);
Microsoft.AspNetCore.SignalR.Client.Core (1)
src\aspnetcore\src\Shared\ThrowHelpers\ObjectDisposedThrowHelper.cs (1)
26ObjectDisposedException.ThrowIf(condition, instance);
Microsoft.AspNetCore.SignalR.Core (1)
Hub.cs (1)
134ObjectDisposedException.ThrowIf(_disposed, this);
Microsoft.AspNetCore.TestHost (1)
TestServer.cs (1)
255ObjectDisposedException.ThrowIf(_disposed, this);
Microsoft.AspNetCore.WebUtilities (6)
BufferedReadStream.cs (1)
430ObjectDisposedException.ThrowIf(_disposed, this);
FileBufferingReadStream.cs (1)
500ObjectDisposedException.ThrowIf(_disposed, this);
FileBufferingWriteStream.cs (1)
291ObjectDisposedException.ThrowIf(Disposed, this);
HttpRequestStreamReader.cs (1)
546ObjectDisposedException.ThrowIf(_disposed, this);
HttpResponseStreamWriter.cs (1)
679ObjectDisposedException.ThrowIf(_disposed, this);
PagedByteBuffer.cs (1)
139ObjectDisposedException.ThrowIf(Disposed, this);
Microsoft.CodeAnalysis (1)
DiagnosticAnalyzer\AnalyzerAssemblyLoader.cs (1)
126ObjectDisposedException.ThrowIf(_isDisposed, this);
Microsoft.CodeAnalysis.Workspaces (1)
src\roslyn\src\Compilers\Core\Portable\DiagnosticAnalyzer\AnalyzerAssemblyLoader.cs (1)
126ObjectDisposedException.ThrowIf(_isDisposed, this);
Microsoft.DotNet.HotReload.Watch (5)
Aspire\AspireServiceFactory.cs (2)
69ObjectDisposedException.ThrowIf(_isDisposed, this); 212ObjectDisposedException.ThrowIf(_isDisposed, this);
FileWatcher\FileWatcher.cs (1)
71ObjectDisposedException.ThrowIf(_disposed, this);
FileWatcher\PollingDirectoryWatcher.cs (1)
54ObjectDisposedException.ThrowIf(_disposed, this);
Process\RunningProcess.cs (1)
29ObjectDisposedException.ThrowIf(terminationSource == null, this);
Microsoft.Extensions.Caching.StackExchangeRedis (1)
src\aspnetcore\src\Shared\ThrowHelpers\ObjectDisposedThrowHelper.cs (1)
26ObjectDisposedException.ThrowIf(condition, instance);
Microsoft.Extensions.Identity.Core (1)
src\aspnetcore\src\Shared\ThrowHelpers\ObjectDisposedThrowHelper.cs (1)
26ObjectDisposedException.ThrowIf(condition, instance);
Microsoft.Extensions.Identity.Stores (1)
src\aspnetcore\src\Shared\ThrowHelpers\ObjectDisposedThrowHelper.cs (1)
26ObjectDisposedException.ThrowIf(condition, instance);
Microsoft.Extensions.ServiceDiscovery (3)
ServiceEndpointResolver.cs (2)
45ObjectDisposedException.ThrowIf(_disposed, this); 51ObjectDisposedException.ThrowIf(_disposed, this);
ServiceEndpointWatcher.cs (1)
64ObjectDisposedException.ThrowIf(_disposalCancellation.IsCancellationRequested, this);
Microsoft.Extensions.ServiceDiscovery.Dns (2)
Resolver\DnsResolver.cs (2)
61ObjectDisposedException.ThrowIf(_disposed, this); 137ObjectDisposedException.ThrowIf(_disposed, this);
Microsoft.JSInterop (2)
DotNetObjectReferenceOfT.cs (1)
97ObjectDisposedException.ThrowIf(Disposed, this);
Implementation\JSObjectReference.cs (1)
122ObjectDisposedException.ThrowIf(Disposed, this);
PresentationFramework (1)
System\Windows\Controls\WebBrowser.cs (1)
643ObjectDisposedException.ThrowIf(IsDisposed, this);
PresentationUI (1)
MS\Internal\Documents\Application\Document.cs (1)
322ObjectDisposedException.ThrowIf(_isDisposed, this);
System.Collections.Concurrent (2)
System\Collections\Concurrent\BlockingCollection.cs (1)
1725ObjectDisposedException.ThrowIf(_isDisposed, this);
System\Collections\Concurrent\PartitionerStatic.cs (1)
605ObjectDisposedException.ThrowIf(_disposed, this);
System.ComponentModel.TypeConverter (1)
System\Timers\Timer.cs (1)
134ObjectDisposedException.ThrowIf(_disposed, this);
System.Data.Common (1)
System\Data\SQLTypes\SqlXml.cs (1)
522ObjectDisposedException.ThrowIf(IsStreamClosed(), this);
System.Diagnostics.Process (3)
System\Diagnostics\Process.cs (1)
2066ObjectDisposedException.ThrowIf(_disposed, this);
System\Diagnostics\ProcessStartInfo.cs (2)
515ObjectDisposedException.ThrowIf(handle.IsClosed, handle); 576ObjectDisposedException.ThrowIf(handle.IsClosed, handle);
System.Formats.Tar (5)
src\runtime\src\libraries\Common\src\System\IO\SubReadStream.cs (1)
159ObjectDisposedException.ThrowIf(_isDisposed, this);
System\Formats\Tar\GnuSparseStream.cs (1)
566private void ThrowIfDisposed() => ObjectDisposedException.ThrowIf(_isDisposed, this);
System\Formats\Tar\TarWriter.cs (3)
246ObjectDisposedException.ThrowIf(_isDisposed, this); 295ObjectDisposedException.ThrowIf(_isDisposed, this); 390ObjectDisposedException.ThrowIf(_isDisposed, this);
System.IO.Compression (26)
src\runtime\src\libraries\Common\src\System\IO\SubReadStream.cs (1)
159ObjectDisposedException.ThrowIf(_isDisposed, this);
System\IO\Compression\DeflateDecoder.cs (1)
47ObjectDisposedException.ThrowIf(_disposed, this);
System\IO\Compression\DeflateEncoder.cs (1)
134ObjectDisposedException.ThrowIf(_disposed, this);
System\IO\Compression\DeflateManaged\DeflateManagedStream.cs (1)
151ObjectDisposedException.ThrowIf(_stream is null, this);
System\IO\Compression\DeflateZLib\DeflateStream.cs (1)
384ObjectDisposedException.ThrowIf(_stream is null, this);
System\IO\Compression\GZipDecoder.cs (1)
36ObjectDisposedException.ThrowIf(_disposed, this);
System\IO\Compression\GZipEncoder.cs (1)
70ObjectDisposedException.ThrowIf(_disposed, this);
System\IO\Compression\GZipStream.cs (1)
269ObjectDisposedException.ThrowIf(_deflateStream is null, this);
System\IO\Compression\WinZipAesStream.cs (4)
369ObjectDisposedException.ThrowIf(_disposed, this); 495ObjectDisposedException.ThrowIf(_disposed, this); 661ObjectDisposedException.ThrowIf(_disposed, this); 667ObjectDisposedException.ThrowIf(_disposed, this);
System\IO\Compression\ZipArchive.cs (1)
551ObjectDisposedException.ThrowIf(_isDisposed, this);
System\IO\Compression\ZipCryptoStream.cs (6)
278ObjectDisposedException.ThrowIf(_disposed, this); 290ObjectDisposedException.ThrowIf(_disposed, this); 313ObjectDisposedException.ThrowIf(_disposed, this); 396ObjectDisposedException.ThrowIf(_disposed, this); 422ObjectDisposedException.ThrowIf(_disposed, this); 454ObjectDisposedException.ThrowIf(_disposed, this);
System\IO\Compression\ZLibDecoder.cs (1)
36ObjectDisposedException.ThrowIf(_disposed, this);
System\IO\Compression\ZLibEncoder.cs (1)
70ObjectDisposedException.ThrowIf(_disposed, this);
System\IO\Compression\ZLibStream.cs (1)
306ObjectDisposedException.ThrowIf(_deflateStream is null, this);
System\IO\Compression\Zstandard\ZstandardDecoder.cs (1)
396ObjectDisposedException.ThrowIf(_disposed, this);
System\IO\Compression\Zstandard\ZstandardDictionary.cs (1)
203ObjectDisposedException.ThrowIf(_disposed, this);
System\IO\Compression\Zstandard\ZstandardEncoder.cs (1)
456ObjectDisposedException.ThrowIf(_disposed, nameof(ZstandardEncoder));
System\IO\Compression\Zstandard\ZstandardStream.cs (1)
235ObjectDisposedException.ThrowIf(_stream == null, this);
System.IO.Compression.Brotli (1)
System\IO\Compression\BrotliStream.cs (1)
64ObjectDisposedException.ThrowIf(_stream is null, this);
System.IO.FileSystem.Watcher (1)
System\IO\FileSystemWatcher.cs (1)
641ObjectDisposedException.ThrowIf(_disposed, this);
System.IO.MemoryMappedFiles (1)
System\IO\MemoryMappedFiles\MemoryMappedView.Unix.cs (1)
24ObjectDisposedException.ThrowIf(memMappedFileHandle.IsClosed, memMappedFileHandle);
System.IO.Pipes (1)
Microsoft\Win32\SafeHandles\SafePipeHandle.Unix.cs (1)
104ObjectDisposedException.ThrowIf(socket is null, this);
System.Memory (2)
System\Buffers\ArrayMemoryPool.ArrayMemoryPoolBuffer.cs (1)
22ObjectDisposedException.ThrowIf(array is null, this);
System\Buffers\ReadOnlySequenceStream.cs (1)
50private void EnsureNotDisposed() => ObjectDisposedException.ThrowIf(_isDisposed, this);
System.Net.Http (18)
System\Net\Http\DelegatingHandler.cs (2)
74ObjectDisposedException.ThrowIf(_disposed, this); 84ObjectDisposedException.ThrowIf(_disposed, this);
System\Net\Http\HttpClient.cs (3)
577ObjectDisposedException.ThrowIf(_disposed, this); 699ObjectDisposedException.ThrowIf(_disposed, this); 747ObjectDisposedException.ThrowIf(_disposed, this);
System\Net\Http\HttpClientHandler.cs (1)
252ObjectDisposedException.ThrowIf(_disposed, this);
System\Net\Http\HttpContent.cs (1)
673ObjectDisposedException.ThrowIf(_disposed, this);
System\Net\Http\HttpMessageInvoker.cs (2)
39ObjectDisposedException.ThrowIf(_disposed, this); 71ObjectDisposedException.ThrowIf(_disposed, this);
System\Net\Http\HttpRequestMessage.cs (1)
290ObjectDisposedException.ThrowIf(Disposed, this);
System\Net\Http\HttpResponseMessage.cs (1)
231ObjectDisposedException.ThrowIf(_disposed, this);
System\Net\Http\SocketsHttpHandler\CreditManager.cs (1)
163ObjectDisposedException.ThrowIf(_disposed, this);
System\Net\Http\SocketsHttpHandler\Http2Stream.cs (1)
1600ObjectDisposedException.ThrowIf(http2Stream is null, this);
System\Net\Http\SocketsHttpHandler\Http3RequestStream.cs (1)
1508ObjectDisposedException.ThrowIf(stream is null, this);
System\Net\Http\SocketsHttpHandler\HttpContentStream.cs (1)
42ObjectDisposedException.ThrowIf(c is null, this);
System\Net\Http\SocketsHttpHandler\SocketsHttpHandler.cs (3)
33ObjectDisposedException.ThrowIf(_disposed, this); 661ObjectDisposedException.ThrowIf(_disposed, this); 680ObjectDisposedException.ThrowIf(_disposed, this);
System.Net.HttpListener (3)
System\Net\HttpListener.cs (1)
314ObjectDisposedException.ThrowIf(_state == State.Closed, this);
System\Net\HttpListenerResponse.cs (1)
270ObjectDisposedException.ThrowIf(Disposed, this);
System\Net\Managed\HttpResponseStream.Managed.cs (1)
94ObjectDisposedException.ThrowIf(_closed, this);
System.Net.Mail (19)
System\Net\Mail\AlternateView.cs (1)
45ObjectDisposedException.ThrowIf(disposed, this);
System\Net\Mail\AlternateViewCollection.cs (4)
32ObjectDisposedException.ThrowIf(_disposed, this); 39ObjectDisposedException.ThrowIf(_disposed, this); 47ObjectDisposedException.ThrowIf(_disposed, this); 54ObjectDisposedException.ThrowIf(_disposed, this);
System\Net\Mail\Attachment.cs (1)
189ObjectDisposedException.ThrowIf(disposed, this);
System\Net\Mail\AttachmentCollection.cs (4)
33ObjectDisposedException.ThrowIf(_disposed, this); 40ObjectDisposedException.ThrowIf(_disposed, this); 47ObjectDisposedException.ThrowIf(_disposed, this); 54ObjectDisposedException.ThrowIf(_disposed, this);
System\Net\Mail\LinkedResourceCollection.cs (4)
32ObjectDisposedException.ThrowIf(_disposed, this); 39ObjectDisposedException.ThrowIf(_disposed, this); 46ObjectDisposedException.ThrowIf(_disposed, this); 53ObjectDisposedException.ThrowIf(_disposed, this);
System\Net\Mail\MailMessage.cs (2)
282ObjectDisposedException.ThrowIf(_disposed, this); 291ObjectDisposedException.ThrowIf(_disposed, this);
System\Net\Mail\SmtpClient.cs (3)
387ObjectDisposedException.ThrowIf(_disposed, this); 587ObjectDisposedException.ThrowIf(_disposed, this); 623ObjectDisposedException.ThrowIf(_disposed, this);
System.Net.NameResolution (16)
System\Net\DnsResolver.cs (16)
93ObjectDisposedException.ThrowIf(_disposed, this); 110ObjectDisposedException.ThrowIf(_disposed, this); 127ObjectDisposedException.ThrowIf(_disposed, this); 144ObjectDisposedException.ThrowIf(_disposed, this); 161ObjectDisposedException.ThrowIf(_disposed, this); 178ObjectDisposedException.ThrowIf(_disposed, this); 194ObjectDisposedException.ThrowIf(_disposed, this); 211ObjectDisposedException.ThrowIf(_disposed, this); 246ObjectDisposedException.ThrowIf(_disposed, this); 262ObjectDisposedException.ThrowIf(_disposed, this); 278ObjectDisposedException.ThrowIf(_disposed, this); 294ObjectDisposedException.ThrowIf(_disposed, this); 310ObjectDisposedException.ThrowIf(_disposed, this); 326ObjectDisposedException.ThrowIf(_disposed, this); 341ObjectDisposedException.ThrowIf(_disposed, this); 357ObjectDisposedException.ThrowIf(_disposed, this);
System.Net.Ping (2)
System\Net\NetworkInformation\Ping.cs (2)
47ObjectDisposedException.ThrowIf(_disposeRequested, this); 75ObjectDisposedException.ThrowIf(_disposeRequested, this);
System.Net.Quic (14)
System\Net\Quic\QuicConnection.cs (4)
523ObjectDisposedException.ThrowIf(_disposed, this); 545ObjectDisposedException.ThrowIf(_disposed, this); 565ObjectDisposedException.ThrowIf(_disposed, this); 604ObjectDisposedException.ThrowIf(_disposed, this);
System\Net\Quic\QuicListener.cs (1)
180ObjectDisposedException.ThrowIf(_disposed, this);
System\Net\Quic\QuicStream.cs (3)
163ObjectDisposedException.ThrowIf(_disposed, this); 305ObjectDisposedException.ThrowIf(_disposed, this); 551ObjectDisposedException.ThrowIf(_disposed, this);
System\Net\Quic\QuicStream.Stream.cs (6)
53ObjectDisposedException.ThrowIf(_disposed, this); 58ObjectDisposedException.ThrowIf(_disposed, this); 72ObjectDisposedException.ThrowIf(_disposed, this); 77ObjectDisposedException.ThrowIf(_disposed, this); 116ObjectDisposedException.ThrowIf(_disposed, this); 178ObjectDisposedException.ThrowIf(_disposed, this);
System.Net.Requests (4)
System\Net\FileWebResponse.cs (1)
108ObjectDisposedException.ThrowIf(_closed, this);
System\Net\HttpWebResponse.cs (1)
379ObjectDisposedException.ThrowIf(_httpResponseMessage == null, this);
System\Net\RequestBufferingStream.cs (1)
131ObjectDisposedException.ThrowIf(_disposed, this);
System\Net\RequestStream.cs (1)
157ObjectDisposedException.ThrowIf(_disposed, this);
System.Net.Security (6)
System\Net\Security\NegotiateStream.cs (1)
593ObjectDisposedException.ThrowIf(ReferenceEquals(e, s_disposedSentinel), this);
System\Net\Security\SslStream.cs (1)
917ObjectDisposedException.ThrowIf(ReferenceEquals(e, s_disposedSentinel), this);
System\Net\Security\SslStream.IO.cs (3)
179ObjectDisposedException.ThrowIf(_nestedAuth == NestedState.StreamDisposed, this); 185ObjectDisposedException.ThrowIf(_nestedRead == NestedState.StreamDisposed, this); 890ObjectDisposedException.ThrowIf(_nestedRead == NestedState.StreamDisposed, this);
System\Net\Security\TlsSession.cs (1)
1583private void ThrowIfDisposed() => ObjectDisposedException.ThrowIf(_disposed, this);
System.Net.Sockets (5)
System\Net\Sockets\NetworkStream.cs (1)
716ObjectDisposedException.ThrowIf(_disposed, this);
System\Net\Sockets\Socket.cs (1)
4045ObjectDisposedException.ThrowIf(Disposed, this);
System\Net\Sockets\SocketAsyncEventArgs.cs (1)
544ObjectDisposedException.ThrowIf(status == OperationState.Disposed, this);
System\Net\Sockets\TCPClient.cs (1)
388ObjectDisposedException.ThrowIf(Disposed, this);
System\Net\Sockets\UDPClient.cs (1)
982ObjectDisposedException.ThrowIf(_disposed, this);
System.Net.WebSockets (2)
System\Net\WebSockets\WebSocketStream.cs (2)
218ObjectDisposedException.ThrowIf(_disposed, this); 341ObjectDisposedException.ThrowIf(_disposed, this);
System.Net.WebSockets.Client (2)
System\Net\WebSockets\BrowserWebSockets\BrowserWebSocket.cs (1)
282ObjectDisposedException.ThrowIf(_disposed, this);
System\Net\WebSockets\ClientWebSocket.cs (1)
166ObjectDisposedException.ThrowIf(_state == InternalState.Disposed, this);
System.Private.CoreLib (22)
src\runtime\src\libraries\System.Private.CoreLib\src\Microsoft\Win32\SafeHandles\SafeFileHandle.cs (1)
73ObjectDisposedException.ThrowIf(IsClosed, this);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\StringStream.cs (1)
111ObjectDisposedException.ThrowIf(_disposed, this);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\SafeHandle.cs (2)
165ObjectDisposedException.ThrowIf((oldState & StateBits.Closed) != 0, this); 222ObjectDisposedException.ThrowIf((oldState & StateBits.RefCount) == 0, this);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Security\SecureString.cs (1)
304ObjectDisposedException.ThrowIf(_buffer == null, this);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\ManualResetEventSlim.cs (3)
82ObjectDisposedException.ThrowIf(IsDisposed, this); 349ObjectDisposedException.ThrowIf(IsDisposed, this); 511ObjectDisposedException.ThrowIf(IsDisposed, this);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\ReaderWriterLockSlim.cs (3)
297ObjectDisposedException.ThrowIf(_fDisposed, this); 443ObjectDisposedException.ThrowIf(_fDisposed, this); 650ObjectDisposedException.ThrowIf(_fDisposed, this);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\SemaphoreSlim.cs (1)
977ObjectDisposedException.ThrowIf(m_lockObjAndDisposed.Value, this);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\ThreadLocal.cs (6)
309ObjectDisposedException.ThrowIf(id < 0, this); 339ObjectDisposedException.ThrowIf(id < 0, this); 375ObjectDisposedException.ThrowIf(!_initialized, this); 394ObjectDisposedException.ThrowIf(!_initialized, this); 431ObjectDisposedException.ThrowIf(list is null, this); 483ObjectDisposedException.ThrowIf(id < 0, this);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\WaitHandle.cs (4)
118ObjectDisposedException.ThrowIf(waitHandle is null, this); 254ObjectDisposedException.ThrowIf(safeWaitHandle is null, waitHandle); // throw ObjectDisposedException for backward compatibility even though it is not representative of the issue 460ObjectDisposedException.ThrowIf(safeWaitHandleToSignal is null, toSignal); // throw ObjectDisposedException for backward compatibility even though it is not representative of the issue 461ObjectDisposedException.ThrowIf(safeWaitHandleToWaitOn is null, toWaitOn);
System.Private.DataContractSerialization (1)
System\Xml\XmlCanonicalWriter.cs (1)
616ObjectDisposedException.ThrowIf(_writer is null, this);
System.Runtime.InteropServices (1)
System\Runtime\InteropServices\Marshalling\ComObject.cs (1)
120ObjectDisposedException.ThrowIf(_released, this);
System.Runtime.InteropServices.JavaScript (2)
System\Runtime\InteropServices\JavaScript\JSObject.References.cs (1)
54ObjectDisposedException.ThrowIf(IsDisposed, this);
System\Runtime\InteropServices\JavaScript\JSProxyContext.cs (1)
286ObjectDisposedException.ThrowIf(_isDisposed, this);
System.Security.Cryptography (33)
src\runtime\src\libraries\Common\src\System\IO\MemoryMappedFiles\MemoryMappedFileMemoryManager.cs (1)
99ObjectDisposedException.ThrowIf(_length < 0, this);
System\Security\Cryptography\CryptoStream.cs (1)
745ObjectDisposedException.ThrowIf(!destination.CanRead && !destination.CanWrite, destination);
System\Security\Cryptography\DSACryptoServiceProvider.Windows.cs (3)
337ObjectDisposedException.ThrowIf(_disposed, this); 369ObjectDisposedException.ThrowIf(_disposed, this); 378ObjectDisposedException.ThrowIf(_disposed, this);
System\Security\Cryptography\ECDiffieHellmanCngPublicKey.cs (1)
97ObjectDisposedException.ThrowIf(_disposed, this);
System\Security\Cryptography\HashAlgorithm.cs (7)
36ObjectDisposedException.ThrowIf(_disposed, this); 46ObjectDisposedException.ThrowIf(_disposed, this); 55ObjectDisposedException.ThrowIf(_disposed, this); 86ObjectDisposedException.ThrowIf(_disposed, this); 94ObjectDisposedException.ThrowIf(_disposed, this); 123ObjectDisposedException.ThrowIf(_disposed, this); 244ObjectDisposedException.ThrowIf(_disposed, this);
System\Security\Cryptography\IncrementalHash.cs (10)
95ObjectDisposedException.ThrowIf(_disposed, this); 102ObjectDisposedException.ThrowIf(_disposed, this); 123ObjectDisposedException.ThrowIf(_disposed, this); 152ObjectDisposedException.ThrowIf(_disposed, this); 161ObjectDisposedException.ThrowIf(_disposed, this); 195ObjectDisposedException.ThrowIf(_disposed, this); 224ObjectDisposedException.ThrowIf(_disposed, this); 251ObjectDisposedException.ThrowIf(_disposed, this); 281ObjectDisposedException.ThrowIf(_disposed, this); 479ObjectDisposedException.ThrowIf(ih._disposed, ih);
System\Security\Cryptography\Kmac128.cs (1)
761private void CheckDisposed() => ObjectDisposedException.ThrowIf(_disposed, this);
System\Security\Cryptography\Kmac256.cs (1)
761private void CheckDisposed() => ObjectDisposedException.ThrowIf(_disposed, this);
System\Security\Cryptography\KmacXof128.cs (1)
761private void CheckDisposed() => ObjectDisposedException.ThrowIf(_disposed, this);
System\Security\Cryptography\KmacXof256.cs (1)
761private void CheckDisposed() => ObjectDisposedException.ThrowIf(_disposed, this);
System\Security\Cryptography\RSABCrypt.cs (1)
432ObjectDisposedException.ThrowIf(_lastKeySize < 0, this);
System\Security\Cryptography\RSACryptoServiceProvider.Windows.cs (3)
356ObjectDisposedException.ThrowIf(_disposed, this); 390ObjectDisposedException.ThrowIf(_disposed, this); 399ObjectDisposedException.ThrowIf(_disposed, this);
System\Security\Cryptography\Shake128.cs (1)
483private void CheckDisposed() => ObjectDisposedException.ThrowIf(_disposed, this);
System\Security\Cryptography\Shake256.cs (1)
483private void CheckDisposed() => ObjectDisposedException.ThrowIf(_disposed, this);
System.Threading (9)
System\Threading\Barrier.cs (3)
323ObjectDisposedException.ThrowIf(_disposed, this); 423ObjectDisposedException.ThrowIf(_disposed, this); 643ObjectDisposedException.ThrowIf(_disposed, this);
System\Threading\CountdownEvent.cs (6)
121ObjectDisposedException.ThrowIf(_disposed, this); 175ObjectDisposedException.ThrowIf(_disposed, this); 218ObjectDisposedException.ThrowIf(_disposed, this); 322ObjectDisposedException.ThrowIf(_disposed, this); 380ObjectDisposedException.ThrowIf(_disposed, this); 541ObjectDisposedException.ThrowIf(_disposed, this);
System.Transactions.Local (21)
System\Transactions\CommittableTransaction.cs (2)
55ObjectDisposedException.ThrowIf(Disposed, this); 89ObjectDisposedException.ThrowIf(Disposed, this);
System\Transactions\DependentTransaction.cs (1)
42ObjectDisposedException.ThrowIf(Disposed, this);
System\Transactions\Transaction.cs (16)
355ObjectDisposedException.ThrowIf(Disposed, this); 387ObjectDisposedException.ThrowIf(Disposed, this); 419ObjectDisposedException.ThrowIf(Disposed, this); 455ObjectDisposedException.ThrowIf(Disposed, this); 481ObjectDisposedException.ThrowIf(Disposed, this); 529ObjectDisposedException.ThrowIf(Disposed, this); 572ObjectDisposedException.ThrowIf(Disposed, this); 596ObjectDisposedException.ThrowIf(Disposed, this); 621ObjectDisposedException.ThrowIf(Disposed, this); 660ObjectDisposedException.ThrowIf(Disposed, this); 698ObjectDisposedException.ThrowIf(Disposed, this); 746ObjectDisposedException.ThrowIf(Disposed, this); 793ObjectDisposedException.ThrowIf(Disposed, this); 901ObjectDisposedException.ThrowIf(Disposed, this); 942ObjectDisposedException.ThrowIf(Disposed, this); 986ObjectDisposedException.ThrowIf(Disposed, this);
System\Transactions\TransactionInterop.cs (1)
19ObjectDisposedException.ThrowIf(transaction.Disposed, transaction);
System\Transactions\TransactionScope.cs (1)
835ObjectDisposedException.ThrowIf(_disposed, this);
System.Windows.Forms (6)
System\Windows\Forms\Control.cs (1)
4771ObjectDisposedException.ThrowIf(GetState(States.Disposed), this);
System\Windows\Forms\Controls\ToolStrips\ToolStripControlHost.cs (1)
131ObjectDisposedException.ThrowIf(_control is null, _control);
System\Windows\Forms\Controls\WebBrowser\HtmlHistory.cs (1)
24ObjectDisposedException.ThrowIf(_disposed, this);
System\Windows\Forms\Controls\WebBrowser\WebBrowser.cs (1)
1393ObjectDisposedException.ThrowIf(IsDisposed, this);
System\Windows\Forms\Input\Cursor.cs (1)
160ObjectDisposedException.ThrowIf(_handle.IsNull, this);
System\Windows\Forms\WindowSubclassHandler.cs (1)
87ObjectDisposedException.ThrowIf(_disposed, this);
System.Windows.Forms.Design (8)
System\ComponentModel\Design\DesignSurface.cs (7)
75ObjectDisposedException.ThrowIf(_host is null, this); 108ObjectDisposedException.ThrowIf(_serviceContainer is null, this); 128ObjectDisposedException.ThrowIf(_host is null, this); 226ObjectDisposedException.ThrowIf(_host is null, this); 241ObjectDisposedException.ThrowIf(_host is null, this); 260ObjectDisposedException.ThrowIf(_host is null, this); 319ObjectDisposedException.ThrowIf(_host is null, this);
System\ComponentModel\Design\Serialization\BasicDesignerLoader.cs (1)
86ObjectDisposedException.ThrowIf(_hostInitialized, this);