.NET Framework => Core: LINQ AsParallel

In the .NET Framework, if we wanted to process a loop on multiple cores, we simply added AsParallell to the end of the collection as seen below: var files = new List(); foreach (var directory in directories.AsParallel()) {   if (directory.Exists)   {     var foundFiles = directory.EnumerateFiles(searchPattern, searchOption);   lock (files)   {   … Continue reading .NET Framework => Core: LINQ AsParallel

Advertisements