public override int GetHashCode() { unchecked { int hashCode = 1867150729; if (Pos1.CompareTo(Pos2) > 0) { hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(Pos1); hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(Pos2); } else { hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(Pos2); hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(Pos1); } return(hashCode); } }
public static bool operator>=(DiffViewPosition Pos1, DiffViewPosition Pos2) { return(Pos1.CompareTo(Pos2) >= 0); }