public override int GetHashCode() { unchecked { int result = (m_ObjPropertyCollection != null ? m_ObjPropertyCollection.GetHashCode() : 0); result = (result * 397) ^ (CharacterSet != null ? CharacterSet.GetHashCode() : 0); result = (result * 397) ^ (ContentEncoding != null ? ContentEncoding.GetHashCode() : 0); result = (result * 397) ^ (ContentType != null ? ContentType.GetHashCode() : 0); result = (result * 397) ^ (Headers != null ? Headers.GetHashCode() : 0); result = (result * 397) ^ IsFromCache.GetHashCode(); result = (result * 397) ^ IsMutuallyAuthenticated.GetHashCode(); result = (result * 397) ^ LastModified.GetHashCode(); result = (result * 397) ^ (Method != null ? Method.GetHashCode() : 0); result = (result * 397) ^ (OriginalReferrerUrl != null ? OriginalReferrerUrl.GetHashCode() : 0); result = (result * 397) ^ (OriginalUrl != null ? OriginalUrl.GetHashCode() : 0); result = (result * 397) ^ (ProtocolVersion != null ? ProtocolVersion.GetHashCode() : 0); result = (result * 397) ^ (Referrer != null ? Referrer.GetHashCode() : 0); result = (result * 397) ^ (ResponseUri != null ? ResponseUri.GetHashCode() : 0); result = (result * 397) ^ (Server != null ? Server.GetHashCode() : 0); result = (result * 397) ^ StatusCode.GetHashCode(); result = (result * 397) ^ (StatusDescription != null ? StatusDescription.GetHashCode() : 0); result = (result * 397) ^ (Step != null ? Step.GetHashCode() : 0); result = (result * 397) ^ (Text != null ? Text.GetHashCode() : 0); result = (result * 397) ^ (Title != null ? Title.GetHashCode() : 0); result = (result * 397) ^ DownloadTime.GetHashCode(); return(result); } }
/// <summary> /// Gets the hash code /// </summary> /// <returns>Hash code</returns> public override int GetHashCode() { unchecked // Overflow is fine, just wrap { int hashCode = 41; if (Content != null) { hashCode = hashCode * 59 + Content.GetHashCode(); } if (FileName != null) { hashCode = hashCode * 59 + FileName.GetHashCode(); } hashCode = hashCode * 59 + ContentEncoding.GetHashCode(); hashCode = hashCode * 59 + GetPreview.GetHashCode(); hashCode = hashCode * 59 + ThumbnailWidth.GetHashCode(); hashCode = hashCode * 59 + ThumbnailHeight.GetHashCode(); if (ThumbnailBackgroundColor != null) { hashCode = hashCode * 59 + ThumbnailBackgroundColor.GetHashCode(); } hashCode = hashCode * 59 + ThumbnailFitToPageSize.GetHashCode(); return(hashCode); } }
public override int GetHashCode() { var prime = 31; var result = 1; result = (prime * result) + ((AppId == null) ? 0 : AppId.GetHashCode()); result = (prime * result) + ((ClusterId == null) ? 0 : ClusterId.GetHashCode()); result = (prime * result) + ((ContentEncoding == null) ? 0 : ContentEncoding.GetHashCode()); result = (prime * result) + (int)(ContentLength ^ (ContentLength >> INT_MASK)); result = (prime * result) + ((ContentType == null) ? 0 : ContentType.GetHashCode()); result = (prime * result) + ((CorrelationId == null) ? 0 : CorrelationId.GetHashCode()); result = (prime * result) + ((DeliveryMode == null) ? 0 : DeliveryMode.GetHashCode()); result = (prime * result) + (int)(DeliveryTag ^ (DeliveryTag >> INT_MASK)); result = (prime * result) + ((Expiration == null) ? 0 : Expiration.GetHashCode()); result = (prime * result) + Headers.GetHashCode(); result = (prime * result) + ((MessageCount == null) ? 0 : MessageCount.GetHashCode()); result = (prime * result) + ((MessageId == null) ? 0 : MessageId.GetHashCode()); result = (prime * result) + ((Priority == null) ? 0 : Priority.GetHashCode()); result = (prime * result) + ((ReceivedExchange == null) ? 0 : ReceivedExchange.GetHashCode()); result = (prime * result) + ((ReceivedRoutingKey == null) ? 0 : ReceivedRoutingKey.GetHashCode()); result = (prime * result) + ((Redelivered == null) ? 0 : Redelivered.GetHashCode()); result = (prime * result) + ((ReplyTo == null) ? 0 : ReplyTo.GetHashCode()); result = (prime * result) + ((Timestamp == null) ? 0 : Timestamp.GetHashCode()); result = (prime * result) + ((Type == null) ? 0 : Type.GetHashCode()); result = (prime * result) + ((UserId == null) ? 0 : UserId.GetHashCode()); return(result); }
/// <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 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();
/// <summary> /// Serves as a hash function for a particular type. /// </summary> /// <returns> /// A hash code for the current <see cref="T:System.Object"/>. /// </returns> public override int GetHashCode() { unchecked { var hashCode = Type.GetHashCode(); hashCode = (hashCode * 397) ^ (Id?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (Schema?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (Comment?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (Title?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (Description?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (Default?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ MultipleOf.GetHashCode(); hashCode = (hashCode * 397) ^ Maximum.GetHashCode(); hashCode = (hashCode * 397) ^ ExclusiveMaximum.GetHashCode(); hashCode = (hashCode * 397) ^ Minimum.GetHashCode(); hashCode = (hashCode * 397) ^ ExclusiveMinimum.GetHashCode(); hashCode = (hashCode * 397) ^ (MaxLength?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (MinLength?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (Pattern?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (AdditionalItems?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (Items?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (MaxItems?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (MinItems?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (UniqueItems?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (Contains?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (AdditionalProperties?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (Definitions?.GetCollectionHashCode().GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (Properties?.GetCollectionHashCode() ?? 0); hashCode = (hashCode * 397) ^ (PatternProperties?.GetCollectionHashCode() ?? 0); hashCode = (hashCode * 397) ^ (Dependencies?.GetCollectionHashCode() ?? 0); hashCode = (hashCode * 397) ^ (Const?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (Enum?.GetCollectionHashCode() ?? 0); hashCode = (hashCode * 397) ^ (Format?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (ContentMediaType?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (ContentEncoding?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (If?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (Then?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (Else?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (AllOf?.GetCollectionHashCode() ?? 0); hashCode = (hashCode * 397) ^ (AnyOf?.GetCollectionHashCode() ?? 0); hashCode = (hashCode * 397) ^ (OneOf?.GetCollectionHashCode() ?? 0); hashCode = (hashCode * 397) ^ (Not?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (Required?.GetCollectionHashCode() ?? 0); hashCode = (hashCode * 397) ^ (Examples?.GetCollectionHashCode() ?? 0); return(hashCode); } }
/// <summary> /// Gets the hash code /// </summary> /// <returns>Hash code</returns> public override int GetHashCode() { unchecked // Overflow is fine, just wrap { int hashCode = 41; if (Content != null) { hashCode = hashCode * 59 + Content.GetHashCode(); } if (FileName != null) { hashCode = hashCode * 59 + FileName.GetHashCode(); } if (Password != null) { hashCode = hashCode * 59 + Password.GetHashCode(); } hashCode = hashCode * 59 + Conformance.GetHashCode(); hashCode = hashCode * 59 + ContentEncoding.GetHashCode(); hashCode = hashCode * 59 + EnableColorDetection.GetHashCode(); hashCode = hashCode * 59 + GetPreview.GetHashCode(); hashCode = hashCode * 59 + ThumbnailWidth.GetHashCode(); hashCode = hashCode * 59 + ThumbnailHeight.GetHashCode(); if (ThumbnailBackgroundColor != null) { hashCode = hashCode * 59 + ThumbnailBackgroundColor.GetHashCode(); } hashCode = hashCode * 59 + ThumbnailFitToPageSize.GetHashCode(); hashCode = hashCode * 59 + TxtPageWidth.GetHashCode(); hashCode = hashCode * 59 + TxtPageHeight.GetHashCode(); hashCode = hashCode * 59 + TxtPageMarginLeft.GetHashCode(); hashCode = hashCode * 59 + TxtPageMarginTop.GetHashCode(); hashCode = hashCode * 59 + TxtPageMarginRight.GetHashCode(); hashCode = hashCode * 59 + TxtPageMarginBottom.GetHashCode(); hashCode = hashCode * 59 + TxtHorizontalTextAlignment.GetHashCode(); hashCode = hashCode * 59 + TxtFontSize.GetHashCode(); if (TxtFontFamily != null) { hashCode = hashCode * 59 + TxtFontFamily.GetHashCode(); } hashCode = hashCode * 59 + TxtFontBold.GetHashCode(); hashCode = hashCode * 59 + TxtFontItalic.GetHashCode(); return(hashCode); } }
/// <summary> /// This was moved into its own function that isn't virtual so that it could /// be called inside the object's constructor. /// </summary> /// <returns>The Object's hash code.</returns> private int CalculateHashCode() { unchecked { var result = (Bucket != null ? Bucket.GetHashCode() : 0); result = (result * 397) ^ (Key != null ? Key.GetHashCode() : 0); result = (result * 397) ^ (Value != null ? Value.GetHashCode() : 0); result = (result * 397) ^ (ContentType != null ? ContentType.GetHashCode() : 0); result = (result * 397) ^ (ContentEncoding != null ? ContentEncoding.GetHashCode() : 0); result = (result * 397) ^ (CharSet != null ? CharSet.GetHashCode() : 0); result = (result * 397) ^ (VectorClock != null ? VectorClock.GetHashCode() : 0); result = (result * 397) ^ (UserMetaData != null ? UserMetaData.GetHashCode() : 0); result = (result * 397) ^ (BinIndexes != null ? BinIndexes.GetHashCode() : 0); result = (result * 397) ^ (IntIndexes != null ? IntIndexes.GetHashCode() : 0); result = (result * 397) ^ LastModified.GetHashCode(); result = (result * 397) ^ LastModifiedUsec.GetHashCode(); result = (result * 397) ^ (Links != null ? Links.GetHashCode() : 0); result = (result * 397) ^ (_vtags != null ? _vtags.GetHashCode() : 0); return(result); } }