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