Example #1
0
        protected bool Equals(MapCellData other)
        {
            if (other == null)
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return(ColorNo == other.ColorNo &&
                   CommentKind == other.CommentKind &&
                   EventId == other.EventId &&
                   EventKind == other.EventKind &&
                   No == other.No &&
                   MapAreaId == other.MapAreaId &&
                   MapInfoIdInEachMapArea == other.MapInfoIdInEachMapArea &&
                   ProductionKind == other.ProductionKind &&
                   SelectCells.EqualsValue(other.SelectCells) &&
                   Distance == other.Distance);
        }
        protected bool Equals(MapCellData other)
        {
            if (other == null) return false;
            if (ReferenceEquals(this, other)) return true;

            return ColorNo == other.ColorNo &&
                CommentKind == other.CommentKind &&
                EventId == other.EventId &&
                EventKind == other.EventKind &&
                No == other.No &&
                MapAreaId == other.MapAreaId &&
                MapInfoIdInEachMapArea == other.MapInfoIdInEachMapArea &&
                ProductionKind == other.ProductionKind &&
                SelectCells.EqualsValue(other.SelectCells) &&
                Distance == other.Distance;
        }