예제 #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());
 }