dotnet / dotnet/dotnet-api-docs

Inconsistent documentation for DbParameterCollection.CopyTo

Offen
#5,145 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
area-System.Collections Pri3 untriaged
Vorherrschende Sprache
C#
Sterne
949
Forks
1.7k
Ø Merge
3 T. 27 Min.
Gemergte PRs (30 T.)
49

Beschreibung

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

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.