public override bool Equals(Object obj) { if (obj == this) { return(true); } if (obj == null || this.GetType() != obj.GetType()) { return(false); } Punter u = (Punter)obj; return(base.Equals(obj) && this.BetESSCoins == u.getBetESSCoins() && OpenBetsListEquals(u.getOpenBets()) && ClosedBetsListEquals(u.getClosedBets())); }
//Copy Constructor public Punter(Punter u) : base((User)u) { this.BetESSCoins = u.getBetESSCoins(); this.openBets = u.getOpenBets(); this.closedBets = u.getClosedBets(); }