Exemplo n.º 1
0
        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));
        }
Exemplo n.º 2
0
 /// <sumary>
 /// Copy Constructor.
 /// </sumary>
 /// <param name="b">Bookie to be copied.</param>
 public Bookie(Bookie b) : base((User)b)
 {
     subscribedEvents = b.getSubscribedEvents();
 }