Exemple #1
0
 public static void Sort <T>([NotNull] ConcurrentCollector <T> collection, IComparer <T> comparer)
 {
     Sort(collection.Items, 0, collection.Count, comparer);
 }
Exemple #2
0
 public static void ForEach <T>([NotNull] ConcurrentCollector <T> collection, [Pooled] ValueAction <T> action)
 {
     For(0, collection.Count, i => action(ref collection.Items[i]));
 }