Exemplo n.º 1
0
 public override int GetHashCode()
 {
     unchecked
     {
         return(((Value?.GetHashCode() ?? 0) * 397) ^ (Type?.GetHashCode() ?? 0));
     }
 }
Exemplo n.º 2
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = Country?.GetHashCode() ?? 0;
         hashCode = (hashCode * 397) ^ (City?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (Street?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (ZipCode?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ BoxNo.GetHashCode();
         hashCode = (hashCode * 397) ^ (Type?.GetHashCode() ?? 0);
         return(hashCode);
     }
 }