Пример #1
0
 public override int GetHashCode()
 {
     return(Airway.GetHashCode() ^
            Distance.GetHashCode() ^
            Type.GetHashCode() ^
            InnerWaypoints.HashCodeByElem());
 }
Пример #2
0
 public bool Equals(Neighbor other)
 {
     return(other != null &&
            Airway == other.Airway &&
            Distance == other.Distance &&
            Type == other.Type &&
            InnerWaypoints.SequenceEqual(other.InnerWaypoints));
 }