/// <summary>Returns a hash code for this object.</summary> /// <returns>A hash code for this object.</returns> public override int GetHashCode() { var hash = new MultiplyByPrimesHash(); hash.Add(this.LineNumber); hash.Add(this.ColumnNumber); return(hash.GetHashCode()); }
/// <summary> /// Get the hash code for the object. /// </summary> /// <returns>The hash code of the Semantic Version</returns> public override int GetHashCode() { var hash = new MultiplyByPrimesHash(); hash.Add(this.Major); hash.Add(this.Minor); hash.Add(this.Patch); hash.Add(this.PatchMinor); hash.Add(this.Prerelease); hash.Add(this.Metadata); return(hash.GetHashCode()); }
/// <summary> /// Get the hash code for the object. /// </summary> /// <returns>The hash code of the Semantic Version</returns> public override int GetHashCode() { var hash = new MultiplyByPrimesHash(); hash.Add(this.Major); hash.Add(this.Minor); hash.Add(this.Patch); hash.Add(this.PatchMinor); hash.Add(this.Prerelease); hash.Add(this.Metadata); return hash.GetHashCode(); }