public override bool Equals(Object obj) { if (obj == this) { return(true); } if (obj == null || obj.GetType() != this.GetType()) { return(false); } Bookie b = (Bookie)obj; return(EventsEquals(b.getSubscribedEvents()) && base.Equals(b)); }
/// <sumary> /// Copy Constructor. /// </sumary> /// <param name="b">Bookie to be copied.</param> public Bookie(Bookie b) : base((User)b) { subscribedEvents = b.getSubscribedEvents(); }