public override int GetHashCode() { return(Airway.GetHashCode() ^ Distance.GetHashCode() ^ Type.GetHashCode() ^ InnerWaypoints.HashCodeByElem()); }
public bool Equals(Neighbor other) { return(other != null && Airway == other.Airway && Distance == other.Distance && Type == other.Type && InnerWaypoints.SequenceEqual(other.InnerWaypoints)); }