public override bool Equals(object obj) { if (!(obj is RuntimeStack)) { return(false); } if (obj == this) { return(true); } RuntimeStack rhs = (RuntimeStack)obj; return(ToString().Equals(rhs.ToString())); }