// If Equals() returns true for a pair of objects // then GetHashCode() must return the same value for these objects. public override int GetHashCode() { int hashExecutablPath = ExecutablPath == null ? 0 : ExecutablPath.GetHashCode(); //int hashProductVersion = ProductVersion.GetHashCode(); return(hashExecutablPath);// ^ hashProductVersion; }
public bool Equals(ClientInfo other) { if (Object.ReferenceEquals(other, null)) { return(false); } if (Object.ReferenceEquals(this, other)) { return(true); } return(ExecutablPath.Equals(other.ExecutablPath)); }