示例#1
0
        public bool Equals(IShip other)
        {
            if (ReferenceEquals(other, null))
            {
                return(ReferenceEquals(this, null));
            }

            return(DeckNumber.Equals(other.DeckNumber) &&
                   FirstCell.Equals(other.FirstCell) && Direction.Equals(other.Direction));
        }