72 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.Http.Connections.Client (1)
src\Shared\ThrowHelpers\ObjectDisposedThrowHelper.cs (1)
42ObjectDisposedException.ThrowIf(condition, type);
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.Extensions.Identity.Core (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)
92ObjectDisposedException.ThrowIf(_disposed, typeof(NativeRecognizer)); 116ObjectDisposedException.ThrowIf(_disposed, typeof(NativeRecognizer));
MS\Internal\IO\Packaging\NetStream.cs (1)
487ObjectDisposedException.ThrowIf(_disposed, typeof(Stream));
MS\Internal\IO\Packaging\ResponseStream.cs (1)
262ObjectDisposedException.ThrowIf(_closed, typeof(ResponseStream));
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\IO\SynchronizingStream.cs (1)
268ObjectDisposedException.ThrowIf(_baseStream is null, typeof(Stream));
System\IO\Packaging\PackWebResponse.cs (1)
746ObjectDisposedException.ThrowIf(_disposed, typeof(PackWebResponse));
System\Windows\Ink\GestureRecognizer.cs (1)
260ObjectDisposedException.ThrowIf(_disposed, typeof(GestureRecognizer));
System\Windows\Input\Stylus\Common\TabletDeviceCollection.cs (1)
32ObjectDisposedException.ThrowIf(TabletDevices == null, typeof(TabletDeviceCollection));
System\Windows\Input\Stylus\Wisp\WispTabletDeviceCollection.cs (4)
179ObjectDisposedException.ThrowIf(_tablets == null, typeof(TabletDeviceCollection)); 399ObjectDisposedException.ThrowIf(_tablets == null, typeof(TabletDeviceCollection)); 502ObjectDisposedException.ThrowIf(_tablets == null, typeof(TabletDeviceCollection)); 589ObjectDisposedException.ThrowIf(_tablets == null, typeof(TabletDeviceCollection));
System\Windows\Media\ByteStreamGeometryContext.cs (1)
283ObjectDisposedException.ThrowIf(_disposed, typeof(ByteStreamGeometryContext));
System\Windows\Media\CompositionTarget.cs (2)
512ObjectDisposedException.ThrowIf(_isDisposed, typeof(CompositionTarget)); 521ObjectDisposedException.ThrowIf(_isDisposed, typeof(CompositionTarget));
System\Windows\Media\DrawingDrawingContext.cs (2)
1123ObjectDisposedException.ThrowIf(_disposed, typeof(DrawingDrawingContext)); 1233ObjectDisposedException.ThrowIf(_disposed, typeof(DrawingDrawingContext));
System\Windows\Media\EventProxy.cs (1)
78ObjectDisposedException.ThrowIf(target == null, typeof(EventProxyWrapper));
System\Windows\Media\MediaContextNotificationWindow.cs (2)
119ObjectDisposedException.ThrowIf(_isDisposed, typeof(MediaContextNotificationWindow)); 129ObjectDisposedException.ThrowIf(_isDisposed, typeof(MediaContextNotificationWindow));
System\Windows\Media\RenderDataDrawingContext.cs (1)
108ObjectDisposedException.ThrowIf(_disposed, typeof(RenderDataDrawingContext));
PresentationFramework (5)
MS\Internal\Documents\DocumentGridPage.cs (1)
352ObjectDisposedException.ThrowIf(_disposed, typeof(DocumentPageView));
MS\Internal\Documents\HostedElements.cs (1)
60ObjectDisposedException.ThrowIf(_textSegments == null, typeof(HostedElements));
MS\Internal\WindowsRuntime\Generated\WinRT\ObjectReference.cs (1)
95ObjectDisposedException.ThrowIf(disposed, typeof(ObjectReference<>));
System\Windows\Controls\Primitives\DocumentPageView.cs (1)
872ObjectDisposedException.ThrowIf(_disposed, typeof(DocumentPageView));
System\Windows\Markup\Baml2006\Baml2006Reader.cs (1)
144ObjectDisposedException.ThrowIf(IsDisposed, typeof(Baml2006Reader));
PresentationUI (1)
MS\Internal\Documents\PeoplePickerWrapper.cs (1)
467ObjectDisposedException.ThrowIf(_isDisposed, typeof(DsObjectNamesWrapper));
ReachFramework (16)
Packaging\XpsDocument.cs (1)
952ObjectDisposedException.ThrowIf(_disposed, typeof(XpsDocument));
Packaging\XpsFixedDocumentReaderWriter.cs (1)
411ObjectDisposedException.ThrowIf(_metroPart is null || CurrentXpsManager.MetroPackage is null, typeof(XpsFixedDocumentReaderWriter));
Packaging\XpsManager.cs (6)
198ObjectDisposedException.ThrowIf(_metroPackage is null, typeof(XpsManager)); 292ObjectDisposedException.ThrowIf(_metroPackage is null, typeof(XpsManager)); 342ObjectDisposedException.ThrowIf(_metroPackage is null, typeof(XpsManager)); 388ObjectDisposedException.ThrowIf(_metroPackage is null, typeof(XpsManager)); 531ObjectDisposedException.ThrowIf(_metroPackage is null, typeof(XpsManager)); 853ObjectDisposedException.ThrowIf(_metroPackage is null, typeof(XpsManager));
PrintConfig\FallbackPTProvider.cs (1)
641ObjectDisposedException.ThrowIf(_deviceHandle is null, typeof(PTProvider));
PrintConfig\PTConverter.cs (2)
155ObjectDisposedException.ThrowIf(_disposed, typeof(PrintTicketConverter)); 219ObjectDisposedException.ThrowIf(_disposed, typeof(PrintTicketConverter));
PrintConfig\PTManager.cs (4)
289ObjectDisposedException.ThrowIf(_disposed, typeof(PrintTicketManager)); 366ObjectDisposedException.ThrowIf(_disposed, typeof(PrintTicketManager)); 404ObjectDisposedException.ThrowIf(_disposed, typeof(PrintTicketManager)); 420ObjectDisposedException.ThrowIf(_disposed, typeof(PrintTicketManager));
PrintConfig\PTProvider.cs (1)
557ObjectDisposedException.ThrowIf(_providerHandle is null, typeof(PTProvider));
System.Windows.Forms (2)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.cs (2)
514ObjectDisposedException.ThrowIf(Disposed, typeof(GridItem)); 705ObjectDisposedException.ThrowIf(Disposed, typeof(GridItem));
System.Windows.Forms.Design (7)
System\ComponentModel\Design\DesignerHost.cs (6)
1264ObjectDisposedException.ThrowIf(!this.TryGetService(out IServiceContainer? sc), typeof(IServiceContainer)); 1270ObjectDisposedException.ThrowIf(!this.TryGetService(out IServiceContainer? sc), typeof(IServiceContainer)); 1276ObjectDisposedException.ThrowIf(!this.TryGetService(out IServiceContainer? sc), typeof(IServiceContainer)); 1282ObjectDisposedException.ThrowIf(!this.TryGetService(out IServiceContainer? sc), typeof(IServiceContainer)); 1288ObjectDisposedException.ThrowIf(!this.TryGetService(out IServiceContainer? sc), typeof(IServiceContainer)); 1294ObjectDisposedException.ThrowIf(!this.TryGetService(out IServiceContainer? sc), typeof(IServiceContainer));
System\ComponentModel\Design\ReferenceService.cs (1)
67ObjectDisposedException.ThrowIf(_provider is null, typeof(IReferenceService));
System.Xaml (8)
System\Xaml\InfosetObjects\XamlObjectWriter.cs (1)
996ObjectDisposedException.ThrowIf(IsDisposed, typeof(XamlObjectWriter));
System\Xaml\InfosetObjects\XamlXmlReader.cs (1)
335ObjectDisposedException.ThrowIf(IsDisposed, typeof(XamlXmlReader));
System\Xaml\ReaderDelegate.cs (1)
29ObjectDisposedException.ThrowIf(IsDisposed, typeof(XamlReader)); // Can't say ReaderDelegate because its internal.
System\Xaml\ReaderMultiIndexDelegate.cs (1)
42ObjectDisposedException.ThrowIf(IsDisposed, typeof(XamlReader)); // Can't say ReaderMultiIndexDelegate because its internal.
System\Xaml\WriterDelegate.cs (1)
118ObjectDisposedException.ThrowIf(IsDisposed, typeof(XamlWriter)); // Can't say ReaderMultiIndexDelegate because its internal.
System\Xaml\XamlBackgroundReader.cs (1)
176ObjectDisposedException.ThrowIf(IsDisposed, typeof(XamlBackgroundReader));
System\Xaml\XamlSubreader.cs (1)
29ObjectDisposedException.ThrowIf(IsDisposed, typeof(XamlReader)); // Can't say XamlSubreader because its internal.
System\Xaml\XamlXmlWriter.cs (1)
261ObjectDisposedException.ThrowIf(IsDisposed, typeof(XamlXmlWriter));