dotnet / dotnet-api-docs

.NET API reference documentation (.NET 5+, .NET Core, .NET Framework)
https://docs.microsoft.com/dotnet/api/
Other
737 stars 1.57k forks source link

Wrong Code Example #10518

Open Vsevolod-01 opened 1 month ago

Vsevolod-01 commented 1 month ago

Type of issue

Code doesn't work

Description

The code example has nothing to do with the article.

Page URL

https://learn.microsoft.com/en-us/dotnet/api/system.data.sqlclient.sqlparametercollection.clear?view=netframework-4.8.1&viewFallbackFrom=dotnet-plat-ext-7.0

Content source URL

https://github.com/dotnet/dotnet-api-docs/blob/main/xml/System.Data.SqlClient/SqlParameterCollection.xml

Document Version Independent Id

598ff218-38d1-998e-865a-e2cf88588949

Article author

@dotnet-bot

dotnet-policy-service[bot] commented 1 month ago

Tagging subscribers to this area: @cheenamalhotra, @david-engel

cheenamalhotra commented 1 month ago

Tagging @carlossanlop as well as this seems to be added in PR https://github.com/dotnet/dotnet-api-docs/pull/3968, I'm trying to recollect where this example came from..