dotnet / dotnet/dotnet-api-docs
Incorrect Information in Barrier.AddParticipants(Int32) Method Exception Docs
- Dominant language
- C#
- Stars
- 949
- Forks
- 1.7k
- Avg merge
- 3d 27m
- Merged PRs (30d)
- 49
Description
### Type of issue
Other (describe below)
### Description
The docs claim this method throws an ArgumentOutOfRangeException when "**participantCount is less than 0**." in actuality it throws this [when participantCount is less than **1**](https://github.com/microsoft/referencesource/blame/51cf7850defa8a17d815b4700b67116e3fa283c2/System/sys/system/threading/Barrier.cs#L340).
### Page URL
https://learn.microsoft.com/en-us/dotnet/api/system.threading.barrier.addparticipants?view=net-8.0
### Content source URL
https://github.com/dotnet/dotnet-api-docs/blob/main/xml/System.Threading/Barrier.xml
### Document Version Independent Id
940bac83-e82e-5a96-aecf-c2be9c712297
### Article author
@dotnet-bot
Contributor guide
Assessment
This issue has not been assessed yet.