dotnet / dotnet/dotnet-api-docs

“Executes a foreach (For Each  in Visual Basic) operation” is misleading.

Open
#1,945 0 comments 0 reactions 0 assignees View on GitHub
area-System.Threading.Tasks dotnet-api/prod Pri2 untriaged
Dominant language
C#
Stars
949
Forks
1.7k
Avg merge
3d 27m
Merged PRs (30d)
49

Description

“Executes a foreach (For Each  in Visual Basic) operation” is misleading.

The phrase may be interpreted as you refer to language operator, not to concept and the language operator can call Parallel.ForEach as internal implementation.

More precise wording will be
“Executes a loop similar to foreach operator in a language like C#(For Each in Visual Basic)”

Also on such big page it is hard to find any examples of use, that are provided only on the bottom. Please provide more examples for the most popular overloads.

---
#### Document Details

⚠ *Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.*

* ID: ece7b4bd-b876-c42b-422b-94789da0cf66
* Version Independent ID: 1292e1f0-65d8-d2cb-bbb0-556638056b1f
* Content: [Parallel.ForEach Method (System.Threading.Tasks)](https://docs.microsoft.com/en-us/dotnet/api/system.threading.tasks.parallel.foreach?view=netframework-4.7.2)
* Content Source: [xml/System.Threading.Tasks/Parallel.xml](https://github.com/dotnet/dotnet-api-docs/blob/master/xml/System.Threading.Tasks/Parallel.xml)
* Product: **dotnet-api**
* GitHub Login: @dotnet-bot
* Microsoft Alias: **dotnetcontent**

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.