/// <summary> /// Gets the hash code /// </summary> /// <returns>Hash code</returns> public override int GetHashCode() { unchecked // Overflow is fine, just wrap { var hashCode = 41; // Suitable nullity checks etc, of course :) if (BlobName != null) { hashCode = hashCode * 59 + BlobName.GetHashCode(); } if (ContainerName != null) { hashCode = hashCode * 59 + ContainerName.GetHashCode(); } if (CorrelationId != null) { hashCode = hashCode * 59 + CorrelationId.GetHashCode(); } if (HostName != null) { hashCode = hashCode * 59 + HostName.GetHashCode(); } if (SasToken != null) { hashCode = hashCode * 59 + SasToken.GetHashCode(); } return(hashCode); } }
public override int GetHashCode() => BlobName.GetHashCode() ^ CacheControl.GetHashCode() ^ BlobContainerName.GetHashCode() ^ ContentDisposition.GetHashCode() ^ ContentEncoding.GetHashCode() ^ ContentLanguage.GetHashCode() ^ ContentType.GetHashCode() ^ ExpiryTime.GetHashCode() ^ Identifier.GetHashCode() ^ IPRange.GetHashCode() ^ Permissions.GetHashCode() ^ Protocol.GetHashCode() ^ StartTime.GetHashCode() ^ Version.GetHashCode();