public static void Sort <T>([NotNull] ConcurrentCollector <T> collection, IComparer <T> comparer)
 {
     Sort(collection.Items, 0, collection.Count, comparer);
 }
示例#2
0
 public static void Add <T>([NotNull] this ConcurrentCollector <T> collection, T item, [NotNull] ConcurrentCollectorCache <T> cache)
 {
     cache.Add(collection, item);
 }
 public static void ForEach <T>([NotNull] ConcurrentCollector <T> collection, [Pooled] ValueAction <T> action)
 {
     For(0, collection.Count, i => action(ref collection.Items[i]));
 }
示例#4
0
 internal Enumerator(ConcurrentCollector <T> list)
 {
     this.list = list;
     index     = 0;
     current   = default(T);
 }