tags:

views:

29

answers:

1

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();
+2  A: 
var formattedStatus = from status in _statusCollection.AsParallel()
                      select FormatStatus(status);
Tim Jarvis
Also, you could create an extension method on the string class and then select status.Formatted();
Tim Jarvis
Thank you! The Formatting would still be done on different threads via plinq this way?
Justin
Yes, as far as I understand it.
Tim Jarvis