dotnet / dotnet/dotnet-api-docs

Inconsistent documentation for DbParameterCollection.CopyTo

Open
#5,145 1 comment 0 reactions 0 assignees View on GitHub
area-System.Collections Pri3 untriaged
Dominant language
C#
Stars
949
Forks
1.7k
Avg merge
3d 27m
Merged PRs (30d)
49

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.