dotnet / dotnet/dotnet-api-docs

Inconsistent documentation for DbParameterCollection.CopyTo

Aperta
#5,145 1 commento 0 reazioni 0 assegnatari Vedi su GitHub
area-System.Collections Pri3 untriaged
Lingua principale
C#
Stelle
949
Fork
1.7k
Merge medio
3g 27m
PR unite (30g)
49

Descrizione

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 :)

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.