System.Collections.Concurrent.ConcurrentStack<T>
public class ConcurrentStack<T> : IProducerConsumerCollection<T>, IEnumerable<T>, IEnumerable, ICollection, IReadOnlyCollection<T>
namespace System.Collections.Concurrent
{
public class ConcurrentStack<T> : IProducerConsumerCollection<T>, IEnumerable<T>, IEnumerable, ICollection, IReadOnlyCollection<T>
{
public int Count { get; }
public bool IsEmpty { get; }
public ConcurrentStack();
public ConcurrentStack(IEnumerable<T> collection);
public void Clear();
public void CopyTo(T[] array, int index);
public IEnumerator<T> GetEnumerator();
public void Push(T item);
public void PushRange(T[] items);
public void PushRange(T[] items, int startIndex, int count);
public T[] ToArray();
public bool TryPeek(out T result);
public bool TryPop(out T result);
public int TryPopRange(T[] items);
public int TryPopRange(T[] items, int startIndex, int count);
}
}