/// <summary>Serves as the default hash function. </summary> /// <returns>A hash code for the current object.</returns> public override int GetHashCode() { unchecked { return(this.Head.GetHashCode() * 29 * AddressFamily.GetHashCode() * 187 * this.RoutingPrefix.GetHashCode()); } }
public override int GetHashCode() { unchecked { int hash = 17; hash = hash * 23 + addressFamily.GetHashCode(); hash = hash * 23 + lowerBytes.GetHashCode(); hash = hash * 23 + upperBytes.GetHashCode(); return(hash); } }
/// <summary> /// GetHashCode() override /// </summary> /// <returns> /// A <see cref="System.Int32"/> /// </returns> public override int GetHashCode() { return(AddressFamily.GetHashCode() + Address.GetHashCode()); }