dotnet / dotnet/dotnet-api-docs
Inconsistent documentation for DbParameterCollection.CopyTo
- Langage dominant
- C#
- Étoiles
- 950
- Forks
- 1.7k
- Merge moyen
- 2 j 19 h
- PR mergées (30 j)
- 52
Description
I found an anomaly in the docs for DbParameterCollection ( [dotnet-api-docs/xml/System.Data.Common/DbParameterCollection.xml](https://github.com/dotnet/dotnet-api-docs/blob/master/xml/System.Data.Common/DbParameterCollection.xml) ). In the CopyTo method, the documentation claims that the values in the input array are copied to the collection. However, the documentation for the interface (IDataParameterCollection) and the documentation for SqlParameterCollection claim the values in the collection are copied into the input array.
I wasn't sure which way would be the expected behavior, and I didn't have time to read the .NET source code, so I wanted to document this. If nobody know off the top of their head, I'll try to loop back to research it out and fix it later :)
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
Commencez par dotnet-api-docs/xml/System.Data.Common/DbParameterCollection.xml et comparez la formulation de CopyTo avec IDataParameterCollection et SqlParameterCollection. Inspectez le code source .NET afin de déterminer le sens réel de la copie, puis mettez à jour la documentation incohérente et vérifiez les pages d’API concernées.
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é
- 3/5
- Temps estimé
- 1-2 jours
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 45/100