public T Pop() { if (Count == 0) { throw new Exception("Empty stack"); } var result = list.DeleteFirst(); Count--; return(result); }