开发者

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

开发者 https://www.devze.com 2022-12-28 09:23 出处:网络
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.

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(s开发者_如何学运维tatus)).AsParallel();


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

精彩评论

暂无评论...
验证码 换一张
取 消