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