dotnet / dotnet/dotnet-api-docs
System.ThreadStaticAttribute example code should not specify initial values
Open
area-System.Threading
Pri3
untriaged
- Dominant language
- C#
- Stars
- 949
- Forks
- 1.7k
- Avg merge
- 3d 27m
- Merged PRs (30d)
- 49
Description
The documentation for `System.ThreadStaticAttribute` ( https://docs.microsoft.com/en-us/dotnet/api/system.threadstaticattribute ) warns against specifying initial values for thread-static fields, but both the C# and VB example code contradict that warning by specifying initial values.
Contributor guide
Assessment
This issue has not been assessed yet.