/// <summary> /// Get a hash code for the BlobHttpHeaders. /// </summary> /// <returns>Hash code for the BlobHttpHeaders.</returns> public override int GetHashCode() => CacheControl.GetHashCode() ^ ContentDisposition.GetHashCode() ^ ContentEncoding.GetHashCode() ^ ContentLanguage.GetHashCode() ^ ContentHash.GetHashCode() ^ ContentType.GetHashCode() ;
public void EqualsHashCode() { ContentDisposition dummy1 = new ContentDisposition(); dummy1.Inline = true; ContentDisposition dummy2 = new ContentDisposition("inline"); Assert.IsTrue(dummy1.Equals(dummy2)); Assert.IsFalse(dummy1 == dummy2); Assert.IsTrue(dummy1.GetHashCode() == dummy2.GetHashCode()); }
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();