示例#1
0
文件: Arc.cs 项目: Pogadi/viadf
 public override int GetHashCode()
 {
     return(StartNode.GetHashCode() + EndNode.GetHashCode());
 }
示例#2
0
 /// <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());
 }