Skip to content

Commit 21b65e9

Browse files
committed
update IWindowsFormsEditorService annotations
`IWindowsFormsEditorService.DropDownControl` now expects an non-null `Control` as argument
1 parent cbaae24 commit 21b65e9

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/System.Windows.Forms.Design/src/System/ComponentModel/Design/DesignerActionPanel.EditorPropertyLine.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -418,9 +418,9 @@ void IWindowsFormsEditorService.CloseDropDown()
418418
CloseDropDown();
419419
}
420420

421-
void IWindowsFormsEditorService.DropDownControl(Control? control)
421+
void IWindowsFormsEditorService.DropDownControl(Control control)
422422
{
423-
ShowDropDown(control!, ActionPanel.BorderColor);
423+
ShowDropDown(control, ActionPanel.BorderColor);
424424
}
425425

426426
DialogResult IWindowsFormsEditorService.ShowDialog(Form dialog)

src/System.Windows.Forms/src/PublicAPI.Shipped.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6539,7 +6539,7 @@ System.Windows.Forms.Design.IUIService.ShowToolWindow(System.Guid toolWindow) ->
65396539
System.Windows.Forms.Design.IUIService.Styles.get -> System.Collections.IDictionary!
65406540
System.Windows.Forms.Design.IWindowsFormsEditorService
65416541
System.Windows.Forms.Design.IWindowsFormsEditorService.CloseDropDown() -> void
6542-
System.Windows.Forms.Design.IWindowsFormsEditorService.DropDownControl(System.Windows.Forms.Control? control) -> void
6542+
System.Windows.Forms.Design.IWindowsFormsEditorService.DropDownControl(System.Windows.Forms.Control! control) -> void
65436543
System.Windows.Forms.Design.IWindowsFormsEditorService.ShowDialog(System.Windows.Forms.Form! dialog) -> System.Windows.Forms.DialogResult
65446544
System.Windows.Forms.Design.PropertyTab
65456545
System.Windows.Forms.Design.PropertyTab.~PropertyTab() -> void

src/System.Windows.Forms/src/System/Windows/Forms/Design/IWindowsFormsEditorService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public interface IWindowsFormsEditorService
5151
/// no other stored reference to the control.
5252
/// </para>
5353
/// </remarks>
54-
void DropDownControl(Control? control);
54+
void DropDownControl(Control control);
5555

5656
/// <summary>
5757
/// Shows the specified <see cref="Form"/> as a dialog and returns its result. You should always use this

0 commit comments

Comments
 (0)