69 references to ThrowIf
Microsoft.AspNetCore.Components (1)
src\Components\Shared\src\ArrayBuilder.cs (1)
177ObjectDisposedException.ThrowIf(_disposed, null);
Microsoft.AspNetCore.Components.Server (1)
src\Components\Shared\src\ArrayBuilder.cs (1)
177ObjectDisposedException.ThrowIf(_disposed, null);
Microsoft.AspNetCore.Components.WebView (1)
src\Components\Shared\src\ArrayBuilder.cs (1)
177ObjectDisposedException.ThrowIf(_disposed, null);
Microsoft.AspNetCore.OutputCaching.StackExchangeRedis (1)
src\Shared\ThrowHelpers\ObjectDisposedThrowHelper.cs (1)
42ObjectDisposedException.ThrowIf(condition, type);
Microsoft.AspNetCore.Shared.Tests (1)
src\Shared\ThrowHelpers\ObjectDisposedThrowHelper.cs (1)
42ObjectDisposedException.ThrowIf(condition, type);
Microsoft.AspNetCore.TestHost (3)
TestWebSocket.cs (3)
175ObjectDisposedException.ThrowIf(_state >= WebSocketState.Closed, typeof(TestWebSocket)); // or Aborted 282ObjectDisposedException.ThrowIf(_senderClosed, typeof(TestWebSocket)); 333ObjectDisposedException.ThrowIf(_receiverClosed, typeof(TestWebSocket));
Microsoft.Extensions.Caching.StackExchangeRedis (1)
src\Shared\ThrowHelpers\ObjectDisposedThrowHelper.cs (1)
42ObjectDisposedException.ThrowIf(condition, type);
Microsoft.JSInterop (1)
src\Components\Shared\src\ArrayBuilder.cs (1)
177ObjectDisposedException.ThrowIf(_disposed, null);
PresentationCore (21)
MS\Internal\Ink\GestureRecognizer\NativeRecognizer.cs (2)
114ObjectDisposedException.ThrowIf(_disposed, typeof(NativeRecognizer)); 138ObjectDisposedException.ThrowIf(_disposed, typeof(NativeRecognizer));
MS\Internal\IO\Packaging\NetStream.cs (1)
499ObjectDisposedException.ThrowIf(_disposed, typeof(Stream));
MS\Internal\IO\Packaging\ResponseStream.cs (1)
269ObjectDisposedException.ThrowIf(_closed, typeof(ResponseStream));
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\IO\SynchronizingStream.cs (1)
272ObjectDisposedException.ThrowIf(_baseStream is null, typeof(Stream));
System\IO\Packaging\PackWebResponse.cs (1)
761ObjectDisposedException.ThrowIf(_disposed, typeof(PackWebResponse));
System\Windows\Ink\GestureRecognizer.cs (1)
274ObjectDisposedException.ThrowIf(_disposed, typeof(GestureRecognizer));
System\Windows\Input\Stylus\Common\TabletDeviceCollection.cs (1)
36ObjectDisposedException.ThrowIf(TabletDevices == null, typeof(TabletDeviceCollection));
System\Windows\Input\Stylus\Wisp\WispTabletDeviceCollection.cs (4)
184ObjectDisposedException.ThrowIf(_tablets == null, typeof(TabletDeviceCollection)); 404ObjectDisposedException.ThrowIf(_tablets == null, typeof(TabletDeviceCollection)); 507ObjectDisposedException.ThrowIf(_tablets == null, typeof(TabletDeviceCollection)); 594ObjectDisposedException.ThrowIf(_tablets == null, typeof(TabletDeviceCollection));
System\Windows\Media\ByteStreamGeometryContext.cs (1)
299ObjectDisposedException.ThrowIf(_disposed, typeof(ByteStreamGeometryContext));
System\Windows\Media\CompositionTarget.cs (2)
535ObjectDisposedException.ThrowIf(_isDisposed, typeof(CompositionTarget)); 544ObjectDisposedException.ThrowIf(_isDisposed, typeof(CompositionTarget));
System\Windows\Media\DrawingDrawingContext.cs (2)
1136ObjectDisposedException.ThrowIf(_disposed, typeof(DrawingDrawingContext)); 1245ObjectDisposedException.ThrowIf(_disposed, typeof(DrawingDrawingContext));
System\Windows\Media\EventProxy.cs (1)
90ObjectDisposedException.ThrowIf(target == null, typeof(EventProxyWrapper));
System\Windows\Media\MediaContextNotificationWindow.cs (2)
137ObjectDisposedException.ThrowIf(_isDisposed, typeof(MediaContextNotificationWindow)); 147ObjectDisposedException.ThrowIf(_isDisposed, typeof(MediaContextNotificationWindow));
System\Windows\Media\RenderDataDrawingContext.cs (1)
120ObjectDisposedException.ThrowIf(_disposed, typeof(RenderDataDrawingContext));
PresentationFramework (5)
MS\Internal\Documents\DocumentGridPage.cs (1)
365ObjectDisposedException.ThrowIf(_disposed, typeof(DocumentPageView));
MS\Internal\Documents\HostedElements.cs (1)
71ObjectDisposedException.ThrowIf(_textSegments == null, typeof(HostedElements));
MS\Internal\WindowsRuntime\Generated\WinRT\ObjectReference.cs (1)
100ObjectDisposedException.ThrowIf(disposed, typeof(ObjectReference<>));
System\Windows\Controls\Primitives\DocumentPageView.cs (1)
882ObjectDisposedException.ThrowIf(_disposed, typeof(DocumentPageView));
System\Windows\Markup\Baml2006\Baml2006Reader.cs (1)
148ObjectDisposedException.ThrowIf(IsDisposed, typeof(Baml2006Reader));
PresentationUI (1)
MS\Internal\Documents\PeoplePickerWrapper.cs (1)
465ObjectDisposedException.ThrowIf(_isDisposed, typeof(DsObjectNamesWrapper));
ReachFramework (16)
Packaging\XpsDocument.cs (1)
965ObjectDisposedException.ThrowIf(_disposed, typeof(XpsDocument));
Packaging\XpsFixedDocumentReaderWriter.cs (1)
416ObjectDisposedException.ThrowIf(_metroPart is null || CurrentXpsManager.MetroPackage is null, typeof(XpsFixedDocumentReaderWriter));
Packaging\XpsManager.cs (6)
212ObjectDisposedException.ThrowIf(_metroPackage is null, typeof(XpsManager)); 306ObjectDisposedException.ThrowIf(_metroPackage is null, typeof(XpsManager)); 356ObjectDisposedException.ThrowIf(_metroPackage is null, typeof(XpsManager)); 402ObjectDisposedException.ThrowIf(_metroPackage is null, typeof(XpsManager)); 545ObjectDisposedException.ThrowIf(_metroPackage is null, typeof(XpsManager)); 867ObjectDisposedException.ThrowIf(_metroPackage is null, typeof(XpsManager));
PrintConfig\FallbackPTProvider.cs (1)
649ObjectDisposedException.ThrowIf(_deviceHandle is null, typeof(PTProvider));
PrintConfig\PTConverter.cs (2)
161ObjectDisposedException.ThrowIf(_disposed, typeof(PrintTicketConverter)); 225ObjectDisposedException.ThrowIf(_disposed, typeof(PrintTicketConverter));
PrintConfig\PTManager.cs (4)
297ObjectDisposedException.ThrowIf(_disposed, typeof(PrintTicketManager)); 374ObjectDisposedException.ThrowIf(_disposed, typeof(PrintTicketManager)); 412ObjectDisposedException.ThrowIf(_disposed, typeof(PrintTicketManager)); 428ObjectDisposedException.ThrowIf(_disposed, typeof(PrintTicketManager));
PrintConfig\PTProvider.cs (1)
567ObjectDisposedException.ThrowIf(_providerHandle is null, typeof(PTProvider));
System.Net.HttpListener (1)
src\libraries\Common\src\System\Net\WebSockets\WebSocketValidate.cs (1)
51ObjectDisposedException.ThrowIf(isDisposed, typeof(WebSocket));
System.Net.WebSockets (4)
src\libraries\Common\src\System\Net\WebSockets\WebSocketValidate.cs (1)
51ObjectDisposedException.ThrowIf(isDisposed, typeof(WebSocket));
System\Net\WebSockets\ManagedWebSocket.cs (3)
538ObjectDisposedException.ThrowIf(_disposed, typeof(WebSocket)); 705ObjectDisposedException.ThrowIf(_disposed, typeof(WebSocket)); 1432ObjectDisposedException.ThrowIf(_disposed, typeof(WebSocket));
System.Net.WebSockets.Client (1)
src\libraries\Common\src\System\Net\WebSockets\WebSocketValidate.cs (1)
51ObjectDisposedException.ThrowIf(isDisposed, typeof(WebSocket));
System.Security.Cryptography (2)
System\Security\Cryptography\Base64Transforms.cs (2)
146ObjectDisposedException.ThrowIf(_inputBuffer == null, typeof(FromBase64Transform)); 188ObjectDisposedException.ThrowIf(_inputBuffer == null, typeof(FromBase64Transform));
System.Xaml (8)
System\Xaml\InfosetObjects\XamlObjectWriter.cs (1)
976ObjectDisposedException.ThrowIf(IsDisposed, typeof(XamlObjectWriter));
System\Xaml\InfosetObjects\XamlXmlReader.cs (1)
329ObjectDisposedException.ThrowIf(IsDisposed, typeof(XamlXmlReader));
System\Xaml\ReaderDelegate.cs (1)
30ObjectDisposedException.ThrowIf(IsDisposed, typeof(XamlReader)); // Can't say ReaderDelegate because its internal.
System\Xaml\ReaderMultiIndexDelegate.cs (1)
43ObjectDisposedException.ThrowIf(IsDisposed, typeof(XamlReader)); // Can't say ReaderMultiIndexDelegate because its internal.
System\Xaml\WriterDelegate.cs (1)
119ObjectDisposedException.ThrowIf(IsDisposed, typeof(XamlWriter)); // Can't say ReaderMultiIndexDelegate because its internal.
System\Xaml\XamlBackgroundReader.cs (1)
172ObjectDisposedException.ThrowIf(IsDisposed, typeof(XamlBackgroundReader));
System\Xaml\XamlSubreader.cs (1)
30ObjectDisposedException.ThrowIf(IsDisposed, typeof(XamlReader)); // Can't say XamlSubreader because its internal.
System\Xaml\XamlXmlWriter.cs (1)
264ObjectDisposedException.ThrowIf(IsDisposed, typeof(XamlXmlWriter));