public override int GetHashCode() { // not needed but Visual Studio warns without it var hashCode = -2083501448; hashCode = hashCode * -1521134295 + EqualityComparer <InstructionGraphNode> .Default.GetHashCode(From); hashCode = hashCode * -1521134295 + FromIndex.GetHashCode(); return(hashCode); }
public override int GetHashCode() { unchecked { int hash = 13; hash = (hash * 7) + From.GetHashCode(); hash = (hash * 7) + To.GetHashCode(); hash = (hash * 7) + FromIndex.GetHashCode(); hash = (hash * 7) + ToIndex.GetHashCode(); return(hash); } }