Mam problem w klasie Portable Class Library. Wygląda na to, że nie mogę użyć metody rozszerzenia .AsParallel()
, chociaż odwołuje się do System.Linq
. Oto kod:Czy można używać rozszerzenia .AsParallel w PCL?
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace PortableClassLibrary1
{
public class Class1
{
public Class1()
{
var list = new List<String>();
}
}
}
list
ma nie AsParallel()
sposób, że ma tylko AsQueryable
i AsEnumerable
.
Docelową strukturą są .NET 4.5 i highr, Phone 8, Windows Store App (Win 8) i nowsze. Jakieś pomysły?
Świetnie! Dziękuję Ci bardzo! – AlexMortola