public override int GetHashCode() { return(StartNode.GetHashCode() + EndNode.GetHashCode()); }
/// <summary> /// Generates hashcode using <see cref="StartNode"/>, <see cref="EndNode"/>, <see cref="Distance"/> properties. /// </summary> /// <returns></returns> public override int GetHashCode() { return((StartNode?.GetHashCode() ?? 0) + (EndNode?.GetHashCode() ?? 0) + Distance.GetHashCode()); }