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); } }
public override int GetHashCode() { unchecked { int hashCode = UserAgent?.GetHashCode() ?? 0; hashCode = (hashCode * 397) ^ (HttpMethod?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ IsSecure.GetHashCode(); hashCode = (hashCode * 397) ^ (Host?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ Port; hashCode = (hashCode * 397) ^ (Path?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (Referrer?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (ClientIpAddress?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (Cookies?.GetCollectionHashCode(_cookieHashCodeExclusions) ?? 0); hashCode = (hashCode * 397) ^ (QueryString?.GetCollectionHashCode() ?? 0); hashCode = (hashCode * 397) ^ (Data?.GetCollectionHashCode() ?? 0); return(hashCode); } }
public override int GetHashCode() { unchecked { var hashCode = UserAgent == null ? 0 : UserAgent.GetHashCode(); hashCode = (hashCode * 397) ^ (HttpMethod == null ? 0 : HttpMethod.GetHashCode()); hashCode = (hashCode * 397) ^ IsSecure.GetHashCode(); hashCode = (hashCode * 397) ^ (Host == null ? 0 : Host.GetHashCode()); hashCode = (hashCode * 397) ^ Port; hashCode = (hashCode * 397) ^ (Path == null ? 0 : Path.GetHashCode()); hashCode = (hashCode * 397) ^ (Referrer == null ? 0 : Referrer.GetHashCode()); hashCode = (hashCode * 397) ^ (ClientIpAddress == null ? 0 : ClientIpAddress.GetHashCode()); hashCode = (hashCode * 397) ^ (Cookies == null ? 0 : Cookies.GetCollectionHashCode(_cookieHashCodeExclusions)); hashCode = (hashCode * 397) ^ (QueryString == null ? 0 : QueryString.GetCollectionHashCode()); hashCode = (hashCode * 397) ^ (Data == null ? 0 : Data.GetCollectionHashCode()); return(hashCode); } }
/// <summary> /// Gets the hash code /// </summary> /// <returns>Hash code</returns> public override int GetHashCode() { unchecked // Overflow is fine, just wrap { var hashCode = 41; // ReSharper disable NonReadonlyMemberInGetHashCode if (Name != null) { hashCode = hashCode * 59 + Name.GetHashCode(); } hashCode = hashCode * 59 + DocumentType.GetHashCode(); if (DocumentContent != null) { hashCode = hashCode * 59 + DocumentContent.GetHashCode(); } if (DocumentUrl != null) { hashCode = hashCode * 59 + DocumentUrl.GetHashCode(); } if (Test != null) { hashCode = hashCode * 59 + Test.GetHashCode(); } if (Pipeline != null) { hashCode = hashCode * 59 + Pipeline.GetHashCode(); } if (Strict != null) { hashCode = hashCode * 59 + Strict.GetHashCode(); } if (IgnoreResourceErrors != null) { hashCode = hashCode * 59 + IgnoreResourceErrors.GetHashCode(); } if (IgnoreConsoleMessages != null) { hashCode = hashCode * 59 + IgnoreConsoleMessages.GetHashCode(); } if (Tag != null) { hashCode = hashCode * 59 + Tag.GetHashCode(); } if (Help != null) { hashCode = hashCode * 59 + Help.GetHashCode(); } if (Javascript != null) { hashCode = hashCode * 59 + Javascript.GetHashCode(); } if (Referrer != null) { hashCode = hashCode * 59 + Referrer.GetHashCode(); } if (CallbackUrl != null) { hashCode = hashCode * 59 + CallbackUrl.GetHashCode(); } if (HostedDownloadLimit != null) { hashCode = hashCode * 59 + HostedDownloadLimit.GetHashCode(); } if (HostedExpiresAt != null) { hashCode = hashCode * 59 + HostedExpiresAt.GetHashCode(); } if (PrinceOptions != null) { hashCode = hashCode * 59 + PrinceOptions.GetHashCode(); } // ReSharper restore NonReadonlyMemberInGetHashCode return(hashCode); } }