23 references to IsEmpty
System.Windows.Forms (8)
System\Windows\Forms\Accessibility\AccessibleObject.cs (2)
1019
Debug.Assert(result.
IsEmpty
|| result.vt == VARENUM.VT_I4);
2804
childID.
IsEmpty
System\Windows\Forms\ComponentModel\COM2Interop\COM2FontConverter.cs (2)
27
Debug.Assert(nativeValue.
IsEmpty
, $"Expected IUnknown, got {nativeValue.Type}");
82
Debug.Assert(nativeValue.
IsEmpty
, $"Expected IUnknown, got {nativeValue.Type}");
System\Windows\Forms\ComponentModel\COM2Interop\COM2PictureConverter.cs (1)
37
Debug.Assert(nativeValue.
IsEmpty
, $"Expected IUnknown, got {nativeValue.Type}");
System\Windows\Forms\ComponentModel\COM2Interop\COM2PropertyDescriptor.cs (1)
641
if (ConvertingNativeType && !nativeValue.
IsEmpty
)
System\Windows\Forms\Controls\ListView\ListViewItem.ListViewItemBaseAccessibleObject.cs (1)
192
return result.
IsEmpty
? VARIANT.False : result;
System\Windows\Forms\Controls\TextBox\TextBoxBase.TextBoxBaseUiaTextProvider.cs (1)
172
*isActive = !hasKeyboardFocus.
IsEmpty
&& (bool)hasKeyboardFocus;
System.Windows.Forms.Primitives.Tests (1)
Interop\Oleaut32\ITypeInfoTests.cs (1)
343
varResult.
IsEmpty
.Should().BeTrue();
System.Windows.Forms.Tests (14)
System\Windows\Forms\AccessibleObjects\ComboBox.ComboBoxAccessibleObjectTests.cs (1)
304
Assert.Equal(expected, !result.
IsEmpty
&& (bool)result);
System\Windows\Forms\AccessibleObjects\DataGridViewCellAccessibleObjectTests.cs (1)
745
Assert.Equal(expected, !result.
IsEmpty
&& (bool)result);
System\Windows\Forms\AccessibleObjects\LinkLabel.Link.LinkAccessibleObjectTests.cs (1)
278
Assert.Equal(expected, !result.
IsEmpty
&& (bool)result);
System\Windows\Forms\AccessibleObjects\ListBox.ListBoxItemAccessibleObjectTests.cs (1)
159
Assert.Equal(expected, !result.
IsEmpty
&& (bool)result);
System\Windows\Forms\AccessibleObjects\ListViewItem.ListViewSubItem.ListViewSubItemAccessibleObjectTests.cs (1)
978
Assert.Equal(expected, !result.
IsEmpty
&& (bool)result);
System\Windows\Forms\AccessibleObjects\ScrollBar.ScrollBarAccessibleObjectTests.cs (1)
155
Assert.Equal(expected, !result.
IsEmpty
&& (bool)result);
System\Windows\Forms\AccessibleObjects\TabControl.TabControlAccessibleObjectTests.cs (1)
792
Assert.Equal(expected, !result.
IsEmpty
&& (bool)result);
System\Windows\Forms\AccessibleObjects\TabPage.TabPageAccessibleObjectTests.cs (1)
521
Assert.Equal(expected, !result.
IsEmpty
&& (bool)result);
System\Windows\Forms\AccessibleObjects\TrackBar.TrackBarAccessibleObjectTests.cs (1)
474
Assert.Equal(expected, !result.
IsEmpty
&& (bool)result);
System\Windows\Forms\AccessibleObjects\UpDownBase.UpDownButtons.UpDownButtonsAccessibleObjectTests.cs (1)
145
Assert.Equal(expected, !result.
IsEmpty
&& (bool)result);
System\Windows\Forms\ComponentModel\Com2Interop\COM2FontConverterTests.cs (2)
51
Assert.True(result.
IsEmpty
);
88
Assert.True(result.
IsEmpty
);
System\Windows\Forms\ComponentModel\Com2Interop\COM2PictureConverterTests.cs (2)
132
Assert.True(Instance.ConvertManagedToNative(null, null, ref cancelSet).
IsEmpty
);
186
Assert.True(Instance.ConvertManagedToNative(new object(), null, ref cancelSet).
IsEmpty
);