public override int GetHashCode()
 {
     return(DisplayName.GetHashCode()
            & DisplayVersion.GetHashCode()
            & UninstallString.to_string().GetHashCode()
            & KeyPath.GetHashCode());
 }
Beispiel #2
0
 public override int GetHashCode()
 {
     unchecked             // Overflow is fine, just wrap
     {
         int hash = 17;
         // Suitable nullity checks etc, of course :)
         hash = hash * 23 + DisplayName.GetHashCode();
         hash = hash * 23 + Publisher.GetHashCode();
         hash = hash * 23 + DisplayVersion.GetHashCode();
         return(hash);
     }
 }