ConcurrentBag扩展 批量加入
public static void AddRange<T>(this ConcurrentBag<T> @this, IEnumerable<T> toAdd) { foreach (var element in toAdd) { @this.Add(element); } }
public static void AddRange<T>(this ConcurrentBag<T> @this, IEnumerable<T> toAdd) { foreach (var element in toAdd) { @this.Add(element); } }