System.Collections.Concurrent.ConcurrentBag<T>
public class ConcurrentBag<T> : IProducerConsumerCollection<T>, IEnumerable<T>, IEnumerable, ICollection, IReadOnlyCollection<T>
namespace System.Collections.Concurrent
{
public class ConcurrentBag<T> : IProducerConsumerCollection<T>, IEnumerable<T>, IEnumerable, ICollection, IReadOnlyCollection<T>
{
public int Count { get; }
public bool IsEmpty { get; }
public ConcurrentBag();
public ConcurrentBag(IEnumerable<T> collection);
public void Add(T item);
public void CopyTo(T[] array, int index);
public IEnumerator<T> GetEnumerator();
public T[] ToArray();
public bool TryPeek(out T result);
public bool TryTake(out T result);
}
}