public Object Pop() { if (Count == 0) throw new InvalidOperationException(); Object ret = this[Count - 1]; RemoveAt(Count - 1); return ret; }