dotnet / dotnet/dotnet-api-docs

`SynchronizedCollection<T>.Add(T)` incorrectly references itself as "read-only"

Open
#10,019 0 comments 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

The method [`SynchronizedCollection.Add(T)`](https://learn.microsoft.com/en-us/dotnet/api/system.collections.generic.synchronizedcollection-1.add?view=net-8.0#system-collections-generic-synchronizedcollection-1-add(-0)) says in the description: "Adds an item to the thread-safe, **read-only** collection.", but the `SynchronizedCollection` is not read-only.

Note:
The [`Insert(Int32, T)`](https://learn.microsoft.com/en-us/dotnet/api/system.collections.generic.synchronizedcollection-1.insert?view=net-8.0#system-collections-generic-synchronizedcollection-1-insert(system-int32-0))-Method simply talks from a collection:
> Inserts an item into the collection at a specified index.

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.