public override int GetHashCode() { unchecked { var hashCode = ColorNo; hashCode = (hashCode * 397) ^ CommentKind; hashCode = (hashCode * 397) ^ EventId; hashCode = (hashCode * 397) ^ EventKind; hashCode = (hashCode * 397) ^ No; hashCode = (hashCode * 397) ^ MapAreaId; hashCode = (hashCode * 397) ^ MapInfoIdInEachMapArea; hashCode = (hashCode * 397) ^ ProductionKind; hashCode = (hashCode * 397) ^ SelectCells.GetValuesHashCode(); hashCode = (hashCode * 397) ^ Distance; return(hashCode); } }
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); }