public void Clear() { for (int i = TheStackAsAList.Count - 1; i >= 0; i--) { TheStackAsAList.RemoveAt(i); } }
public void Push(object obj) { if (obj == null) { throw new InvalidOperationException(); } TheStackAsAList.Add(obj); }