dotnet / dotnet/dotnet-api-docs
Winforms - Control.ResetBindings() summary seems incorrect?
- Langage dominant
- C#
- Étoiles
- 949
- Forks
- 1.7k
- Merge moyen
- 2 j 19 h
- PR mergées (30 j)
- 52
Description
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_))
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
Commencez dans xml/System.Windows.Forms/Control.xml et comparez l’implémentation de Control.ResetBindings dans le code source Control.cs lié. Confirmez le comportement documenté par rapport à l’implémentation, puis mettez à jour le résumé XML et vérifiez la documentation d’API obtenue.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- csharp
- Domaine
- documentation
- Type d'issue
- Documentation
- Difficulté
- 1/5
- Temps estimé
- Moins d'une heure
- Activité
- À l'abandon
- Clarté
- Clairement spécifiée
- Accessibilité débutants
- 45/100