So, do you have a statement that looks something like this? (based on your comments above).
Parallel.Foreach(myData, ..., (d) =>
{
StringBuilder sb = new StringBuilder();
sb.Append(d);
// WriteLine sb?
});
There are a number of problems with this approach.
Parallel.For, Parallel.ForEach , myData .- Console
StringBuilder
, ,
, ,
.
, . , , AsOrdered() PLINQ, , .
. MSDN
PLINQ ForAll
, , .
, , .