dotnet / dotnet/dotnet-api-docs
WeakReference<T> is not documented as thread safe
Open
area-System.Runtime
Pri3
untriaged
- Dominant language
- C#
- Stars
- 949
- Forks
- 1.7k
- Avg merge
- 3d 27m
- Merged PRs (30d)
- 49
Description
The `WeakReference` type is thread safe, but the documentation does not indicate it.
https://github.com/dotnet/dotnet-api-docs/blob/2dbfa9dd8c35baa1d0f0ecc014fd394581947dc5/xml/System/WeakReference%601.xml#L1
It looks lik eth efollowing element can be added to include this detail:
```
This type is thread safe.
```
For example:
https://github.com/dotnet/dotnet-api-docs/blob/dc599c5db9e3464765b4e8c319bc22e525f4eebf/xml/System.Collections.Immutable/ImmutableStack%601%2BEnumerator.xml#L37
Contributor guide
Assessment
This issue has not been assessed yet.