public override int GetHashCode() { unchecked { return((Vertex1.GetHashCode() * 397) ^ Vertex2.GetHashCode()); } }
public override int GetHashCode() { const int prime = 31; int result = 1; result = prime * result + (Vertex1 == null ? 0 : Vertex1.GetHashCode()); result = prime * result + (Vertex2 == null ? 0 : Vertex2.GetHashCode()); return result; }
public override int GetHashCode() { int code = 1; unchecked { code = Vertex1.GetHashCode() + Vertex2.GetHashCode(); } return(code); }
public override int GetHashCode() { unchecked { var hashCode = Vertex1 != null?Vertex1.GetHashCode() : 0; hashCode = (hashCode * 397) ^ (Vertex2 != null ? Vertex2.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Vertex3 != null ? Vertex3.GetHashCode() : 0); return(hashCode); } }
public override int GetHashCode() { unchecked { var hashCode = Normal.GetHashCode(); hashCode = (hashCode * 397) ^ Vertex1.GetHashCode(); hashCode = (hashCode * 397) ^ Vertex2.GetHashCode(); hashCode = (hashCode * 397) ^ Vertex3.GetHashCode(); return(hashCode); } }
public override int GetHashCode() { int hash = 1; if (vertex1_ != null) { hash ^= Vertex1.GetHashCode(); } if (vertex2_ != null) { hash ^= Vertex2.GetHashCode(); } if (vertex3_ != null) { hash ^= Vertex3.GetHashCode(); } return(hash); }
public override int GetHashCode() { return(Id.GetHashCode() ^ Weight.GetHashCode() ^ Vertex1.GetHashCode() ^ Vertex2.GetHashCode()); }
/// <summary> GetHashCode </summary> public override int GetHashCode() { return(Vertex1.GetHashCode() ^ Vertex2.GetHashCode() ^ Directed.GetHashCode()); }
public override int GetHashCode() { return(Vertex1.GetHashCode()); }