public override int GetHashCode()
        {
            var hashCode = 1356543658;

            hashCode = hashCode * -1521134295 + VersionMajor.GetHashCode();
            hashCode = hashCode * -1521134295 + VersionMinor.GetHashCode();
            hashCode = hashCode * -1521134295 + VersionPatch.GetHashCode();
            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(CustomVersionString);

            return(hashCode);
        }
Esempio n. 2
0
 public override int GetHashCode()
 {
     return((int)Math.Pow(VersionMajor.GetHashCode() + 1, Math.Pow(VersionMinor.GetHashCode() + 1, Math.Pow(VersionPatch.GetHashCode() + 1, VersionBuild.GetHashCode() + 1))));
 }