Search code examples
c#linqplinq

How can I use plinq to fill an array with strings returned from my "FormatStatus" Method?


This is my first time playing around with linq and I can't quite figure out what I need to search on google to find out what I am doing wrong, so here I am.
Here is what I have so far:

var formattedStatuses =
            (from status in _statusCollection
            select FormatStatus(status)).AsParallel();

Solution

  • var formattedStatus = from status in _statusCollection.AsParallel()
                          select FormatStatus(status);