dotnet / dotnet/dotnet-api-docs

Winforms - Control.ResetBindings() summary seems incorrect?

Abierto
#2,016 2 comentarios 0 reacciones 0 asignados Ver en GitHub
area-WinForms help wanted Pri2 Pri3
Lenguaje dominante
C#
Estrellas
949
Forks
1.7k
Merge medio
3 d 27 min
PR fusionados (30 d)
49

Descripción

Right now the xml summary for `Control.ResetBindings` reads:

```csharp
Causes a control bound to the to reread all the items in the list and refresh their displayed values.
```

[Docs](https://docs.microsoft.com/en-us/dotnet/api/system.windows.forms.control.resetbindings?view=netframework-4.7.2#System_Windows_Forms_Control_ResetBindings) - [Control.xml](https://github.com/dotnet/dotnet-api-docs/blob/master/xml/System.Windows.Forms/Control.xml)

The implementation clears all the bindings though:

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

[Source](https://github.com/dotnet/winforms/blob/432926c306dcb5bd61d6a3299a647c02b5f51ffa/src/System.Windows.Forms/src/System/Windows/Forms/Control.cs#L1222)

I think perhaps this summary was copied from `BindingSource`? ([Docs](https://docs.microsoft.com/en-us/dotnet/api/system.windows.forms.bindingsource.resetbindings?view=netframework-4.7.2#System_Windows_Forms_BindingSource_ResetBindings_System_Boolean_))

Guía de contribución

Abrir la guía de contribución

Línea de trabajo

Start in xml/System.Windows.Forms/Control.xml and compare the Control.ResetBindings implementation in the linked Control.cs source. Confirm the documented behavior against the implementation, then update the XML summary and verify the resulting API documentation.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
csharp
Área
documentation
Tipo de issue
Documentación
Dificultad
1/5
Tiempo estimado
Menos de una hora
Estado de actividad
Estancado
Claridad
Bien especificado
Aptitud para principiantes
45/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.