public bool Equals(MapMsg other) { if (ReferenceEquals(other, null)) { return(false); } if (ReferenceEquals(other, this)) { return(true); } if (!object.Equals(Header, other.Header)) { return(false); } if (!object.Equals(Hdmap, other.Hdmap)) { return(false); } if (!NavigationPath.Equals(other.NavigationPath)) { return(false); } if (!object.Equals(LaneMarker, other.LaneMarker)) { return(false); } if (!object.Equals(Localization, other.Localization)) { return(false); } return(true); }
public override int GetHashCode() { int hash = 1; if (header_ != null) { hash ^= Header.GetHashCode(); } if (hdmap_ != null) { hash ^= Hdmap.GetHashCode(); } hash ^= NavigationPath.GetHashCode(); if (laneMarker_ != null) { hash ^= LaneMarker.GetHashCode(); } if (localization_ != null) { hash ^= Localization.GetHashCode(); } return(hash); }