dotnet / dotnet-api-docs

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

Poor (beginner) if statements #10633

Open gggustafson opened 2 hours ago

gggustafson commented 2 hours ago

Type of issue

Other (describe below)

Description

Throughout the documentation appear statements like:

`if ( boolean-variable == true ) { do something }`

The if-statement should read

`if ( boolean-variable ) ...`

Page URL

https://learn.microsoft.com/en-us/dotnet/api/system.componentmodel.backgroundworker?view=netframework-3.5

Content source URL

https://github.com/dotnet/dotnet-api-docs/blob/main/xml/System.ComponentModel/BackgroundWorker.xml

Document Version Independent Id

2bbec9a8-0dcc-dba0-f5a7-2ef5a9cb97dd

Article author

@dotnet-bot

dotnet-policy-service[bot] commented 2 hours ago

Tagging subscribers to this area: @dotnet/area-system-componentmodel