public override int GetHashCode() { unchecked { var hashCode = Nome?.GetHashCode() ?? 0; hashCode = (hashCode * 397) ^ Email?.GetHashCode() ?? 0; hashCode = (hashCode * 397) ^ HTML.GetHashCode(); hashCode = (hashCode * 397) ^ CSS.GetHashCode(); hashCode = (hashCode * 397) ^ Javascript.GetHashCode(); hashCode = (hashCode * 397) ^ Python.GetHashCode(); hashCode = (hashCode * 397) ^ Django.GetHashCode(); hashCode = (hashCode * 397) ^ Ios.GetHashCode(); hashCode = (hashCode * 397) ^ Android.GetHashCode(); 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); } }