Skip to content

Winforms - Control.ResetBindings() summary seems incorrect? #2016

Open
@dsherret

Description

@dsherret

Right now the xml summary for Control.ResetBindings reads:

<summary>Causes a control bound to the <see cref="T:System.Windows.Forms.BindingSource" /> to reread all the items in the list and refresh their displayed values.</summary>

Docs - Control.xml

The implementation clears all the bindings though:

public void ResetBindings() {
    ControlBindingsCollection bindings = (ControlBindingsCollection)Properties.GetObject(PropBindings);
    if (bindings != null) {
        bindings.Clear();
    }
}

Source

I think perhaps this summary was copied from BindingSource? (Docs)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Pri2Indicates issues/PRs that are medium priorityPri3Indicates issues/PRs that are low priorityarea-WinFormsIssues or PRs that relate to WinForms.help wantedGood for community contributors to help [up-for-grabs]

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions