Exemplo n.º 1
0
        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }
            if (obj == this)
            {
                return(true);
            }
            if (obj.GetType() != this.GetType())
            {
                return(false);
            }

            SeatCoordinates seat = (SeatCoordinates)obj;

            if (RowNumber.Equals(seat.RowNumber) && SeatNumber.Equals(seat.SeatNumber))
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }
Exemplo n.º 2
0
        public bool Equals(RowId other)
        {
            if (IsNull && other.IsNull)
            {
                return(true);
            }

            return(TableId.Equals(other.TableId) &&
                   RowNumber.Equals(other.RowNumber));
        }