98 references to IsNull
System.Private.Windows.Core (3)
System\Private\Windows\Ole\ClipboardCore.cs (1)
231Debug.Assert(proxyDataObject.IsNull);
System\Private\Windows\Ole\Composition.NativeToManagedAdapter.cs (2)
547Debug.Assert(!nativeDataObject.IsNull, "You must have an innerData on all DataObjects"); 552if (enumFORMATETC.IsNull)
System.Private.Windows.Core.Tests (4)
System\Private\Windows\Ole\ClipboardCoreTests.cs (4)
75data.IsNull.Should().BeFalse(); 96data.IsNull.Should().BeTrue(); 192data.IsNull.Should().BeTrue(); 201data1.IsNull.Should().BeTrue();
System.Windows.Forms (37)
System\Windows\Forms\Accessibility\AccessibleObject.cs (2)
1836return child.IsNull ? null : ComHelpers.GetObjectForIUnknown(child); 2243return dispatch.IsNull ? null : ComHelpers.GetObjectForIUnknown(dispatch);
System\Windows\Forms\ActiveX\AxHost.cs (3)
1694if (activeObject.IsNull) 2822if (!storage.IsNull) 2835if (!propBag.IsNull)
System\Windows\Forms\Application.ComponentThreadContext.cs (3)
93if (PInvoke.CoRegisterMessageFilter(null, messageFilter).Failed || messageFilter.IsNull) 114if (serviceProvider.Value->QueryService(&sid, &iid, serviceHandle).Failed || serviceHandle.IsNull) 121if (hr.Succeeded && !componentManager.IsNull)
System\Windows\Forms\ComponentModel\COM2Interop\COM2PropertyDescriptor.cs (1)
881if (hr.Succeeded && hr != HRESULT.S_FALSE && !errorInfo.IsNull)
System\Windows\Forms\ComponentModel\COM2Interop\COM2TypeInfoProcessor.cs (1)
359if (refTypeInfo.IsNull)
System\Windows\Forms\ComponentModel\COM2Interop\ComNativeDescriptor.cs (1)
84if (typeInfo.IsNull)
System\Windows\Forms\Controls\WebBrowser\HtmlDocument.cs (3)
146if (htmlLocation.IsNull) 482if (dispatch.IsNull) 507if (hr.Failed || scriptDispatch.IsNull)
System\Windows\Forms\Controls\WebBrowser\HtmlElement.cs (5)
67return !dispatch.IsNull && dispatch.Value->QueryInterface(IID.Get<IHTMLElementCollection>(), (void**)&htmlElementCollection).Succeeded 81return !dispatch.IsNull && dispatch.Value->QueryInterface(IID.Get<IHTMLElementCollection>(), (void**)&htmlElementCollection).Succeeded 123if (dispatch.IsNull) 175if (!child.IsNull) 291if (!sibling.IsNull)
System\Windows\Forms\Controls\WebBrowser\HtmlElementCollection.cs (2)
60return !dispatch.IsNull && dispatch.Value->QueryInterface(IID.Get<IHTMLElement>(), (void**)&htmlElement).Succeeded 80return !dispatch.IsNull && dispatch.Value->QueryInterface(IID.Get<IHTMLElement>(), (void**)&htmlElement).Succeeded
System\Windows\Forms\Controls\WebBrowser\HtmlWindow.cs (4)
76if (htmlDoc2.IsNull) 150return !dispatch.IsNull && dispatch.Value->QueryInterface(IID.Get<IHTMLWindow2>(), (void**)&htmlWindow2).Succeeded 229if (location.IsNull) 249return !htmlFrameBase.IsNull && htmlFrameBase.Value->QueryInterface(IID.Get<IHTMLElement>(), (void**)&htmlElement).Succeeded
System\Windows\Forms\Controls\WebBrowser\HtmlWindowCollection.cs (2)
44return !dispatch.IsNull && dispatch.Value->QueryInterface(IID.Get<IHTMLWindow2>(), (void**)&htmlWindow2).Succeeded 62if (!dispatch.IsNull)
System\Windows\Forms\Controls\WebBrowser\WebBrowser.cs (4)
222if (!dispatch.IsNull) 230if (!htmlLocation.IsNull) 356Debug.Assert(!htmlDocument2.IsNull, "The HtmlDocument object must implement IHTMLDocument2."); 381Debug.Assert(!htmlDocument2.IsNull, "The HtmlDocument object must implement IHTMLDocument2.");
System\Windows\Forms\Dialogs\CommonDialogs\FileDialog.Vista.cs (2)
27if (dialog.IsNull) 65if (!initialDirectory.IsNull)
System\Windows\Forms\Dialogs\CommonDialogs\FolderBrowserDialog.cs (3)
358if (!initialDirectory.IsNull) 414if (!item.IsNull) 428if (!item.IsNull)
System\Windows\Forms\Dialogs\CommonDialogs\SaveFileDialog.cs (1)
161return item.IsNull ? [] : [GetFilePathFromShellItem(item)];
System.Windows.Forms.Primitives (1)
System\Windows\Forms\FileDialogCustomPlacesCollection.cs (1)
16if (!shellItem.IsNull)
System.Windows.Forms.Primitives.Tests (30)
Interop\Ole32\IPictureTests.cs (5)
22Assert.False(picture.IsNull); 39Assert.False(picture.IsNull); 55Assert.False(picture.IsNull); 75Assert.False(picture.IsNull); 86Assert.False(picture.IsNull);
Interop\Oleaut32\ITypeInfoTests.cs (16)
20Assert.False(iPictureDisp.IsNull); 34Assert.False(iPictureDisp.IsNull); 48Assert.False(iPictureDisp.IsNull); 64Assert.False(iPictureDisp.IsNull); 84Assert.False(iPictureDisp.IsNull); 104Assert.False(iPictureDisp.IsNull); 138Assert.False(iPictureDisp.IsNull); 162Assert.False(iPictureDisp.IsNull); 176Assert.False(iPictureDisp.IsNull); 190Assert.False(iPictureDisp.IsNull); 212Assert.False(iPictureDisp.IsNull); 229Assert.False(iPictureDisp.IsNull); 243Assert.False(iPictureDisp.IsNull); 282Assert.False(iPictureDisp.IsNull); 295Assert.False(iPictureDisp.IsNull); 324Assert.False(iPictureDisp.IsNull);
System\Windows\Forms\Automation\UiaTextRangeTests.cs (3)
407Assert.True(actual.IsNull); 441Assert.True(actual.IsNull); 455Assert.True(actual.IsNull);
Windows\Win32\System\Com\ComScopeTests.cs (2)
15scope.IsNull.Should().BeFalse(); 17scope.IsNull.Should().BeTrue();
Windows\Win32\System\Com\IDispatchTests.cs (4)
18Assert.False(picture.IsNull); 42Assert.False(picture.IsNull); 53Assert.False(picture.IsNull); 65Assert.False(picture.IsNull);
System.Windows.Forms.Tests (21)
SerializableTypesTests.cs (3)
48Assert.True(resultPropBag.IsNull); 50Assert.True(statePropBag.IsNull); 62Assert.False(streamOut.IsNull);
System\Windows\Forms\AccessibleObjects\AccessibleObjectTests.cs (1)
2763Assert.True(accessible.IsNull);
System\Windows\Forms\AccessibleObjects\ListViewLabelEditAccessibleObjectTests.cs (1)
107Assert.False(elementProvider.IsNull);
System\Windows\Forms\AccessibleObjects\TreeViewLabelEditAccessibleObjectTests.cs (1)
106Assert.False(provider.IsNull);
System\Windows\Forms\Application.ComponentManagerTests.cs (1)
338Assert.False(component.IsNull);
System\Windows\Forms\ComboBox.ComboBoxUiaTextProviderTests.cs (5)
215Assert.False(uiaTextRange.IsNull); 234Assert.True(uiaTextRange.IsNull); 898Assert.True(range.IsNull); 921Assert.False(range.IsNull); 938Assert.True(range.IsNull);
System\Windows\Forms\ComponentModel\Com2Interop\ComNativeDescriptorTests.cs (1)
37Assert.False(iPictureDisp.IsNull);
System\Windows\Forms\PropertyGridInternal\AccessibleObjects\PropertyGridView.GridViewTextBox.GridViewTextBoxAccessibleObjectTests.cs (1)
83Assert.False(previousAccessibleObject.IsNull);
System\Windows\Forms\TextBoxBase.TextBoxBaseUiaTextProviderTests.cs (7)
120Assert.False(documentRange.IsNull); 143Assert.False(uiaTextRange.IsNull); 155Assert.True(uiaTextRange.IsNull); 762Assert.False(range.IsNull); 777Assert.True(range.IsNull); 797Assert.False(range.IsNull); 811Assert.True(range.IsNull);
System.Windows.Forms.UI.IntegrationTests (2)
DragDropTests.cs (2)
173Assert.False(uiAutomation.IsNull); 177Assert.False(uiAutomationElement.IsNull);