Ejemplo n.º 1
0
        private List <IFavorite> Find()
        {
            // already sorted, we dont have to sort the results once again
            SortableList <IFavorite> all = this.favoritesSource.ToListOrderedByDefaultSorting();

            return(all.AsParallel()
                   .WithCancellation(this.Token)
                   .Where(Meet)
                   .ToList());
        }