19 references to IsNull
System.Drawing.Common (6)
System\Drawing\Icon.cs (6)
46if (handle.IsNull) 181return !hIcon.IsNull ? new Icon(hIcon, takeOwnership: true) : null; 185public IntPtr Handle => _handle.IsNull ? throw new ObjectDisposedException(GetType().Name) : (nint)_handle; 260if (!_handle.IsNull) 406if (_iconData is null || !_handle.IsNull) 562if (_handle.IsNull)
System.Windows.Forms (2)
System\Windows\Forms\Dialogs\TaskDialog\TaskDialogIcon.cs (1)
200if (!handle.IsNull)
System\Windows\Forms\MDI\MDIControlStrip.cs (1)
81Icon icon = !hIcon.IsNull ? Icon.FromHandle(hIcon) : Form.DefaultIcon;
System.Windows.Forms.Primitives.TestUtilities (1)
Win32\WindowClass.cs (1)
60if (icon.IsNull)
System.Windows.Forms.Tests (10)
System\Windows\Forms\FormTests.cs (10)
200Assert.False(hSmallIcon.IsNull); 203Assert.False(hLargeIcon.IsNull); 1084Assert.Equal(expectedIconNull, hSmallIcon.IsNull); 1085Assert.Equal(expectedIconNull, hLargeIcon.IsNull); 1284Assert.True(hSmallIcon.IsNull); 1286Assert.True(hLargeIcon.IsNull); 1291Assert.True(hSmallIcon.IsNull); 1293Assert.True(hLargeIcon.IsNull); 1298Assert.False(hSmallIcon.IsNull); 1300Assert.False(hLargeIcon.IsNull);