I have a very simple question. Is it possible to use PLINQ with Silverlight 4 since it seems that it doesn't exist in the most commonly referenced assemblies?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
It is not supported but you can vote for it here:
http://dotnet.uservoice.com/forums/4325-silverlight-feature-suggestions/suggestions/310712-plinq-and-tpl?ref=title
回答2:
http://portabletpl.codeplex.com/
PortableTPL is a portable project inspired by the Task Parallel Library. It can be used with .Net 4.0, Silverlight 4.0, XNA 4.0 for XBox 360 and Silverlight for Windows Phone. PortableTPL supports following features:
- Task
- Task
- Task Continuation
- Task Cancelleation with CancellationTokenSource
- AggregationException
- Parallel.For
- Parallel.ForEach
- Schedulers
回答3:
Not at this time. Neither the Task parallel library or PLINQ have been implemented in Silverlight yet. At the rate the Silverlight team is cranking out releases though... who knows!