Beispiel #1
0
 /// <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());
     }
 }
Beispiel #2
0
 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);
     }
 }
Beispiel #3
0
 /// <summary>
 /// GetHashCode() override
 /// </summary>
 /// <returns>
 /// A <see cref="System.Int32"/>
 /// </returns>
 public override int GetHashCode()
 {
     return(AddressFamily.GetHashCode() + Address.GetHashCode());
 }