System.Collections.Generic.Stack<T>
namespace System.Collections.Generic
{
public class Stack<T> : IEnumerable<T>, IEnumerable, IReadOnlyCollection<T>, ICollection
{
public struct Enumerator : IEnumerator<T>, IEnumerator, IDisposable
{
public T Current { get; }
public void Dispose();
public bool MoveNext();
}
public int Count { get; }
public Stack();
public Stack(IEnumerable<T> collection);
public Stack(int capacity);
public void Clear();
public bool Contains(T item);
public void CopyTo(T[] array, int arrayIndex);
public Enumerator GetEnumerator();
public T Peek();
public T Pop();
public void Push(T item);
public T[] ToArray();
public void TrimExcess();
}
}