Ejemplo n.º 1
0
        /// <summary>
        /// Returns true if Doc instances are equal
        /// </summary>
        /// <param name="input">Instance of Doc to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(Doc input)
        {
            if (input == null)
            {
                return(false);
            }

            return
                ((
                     Name == input.Name ||
                     (Name != null &&
                      Name.Equals(input.Name))
                     ) &&
                 (
                     DocumentType == input.DocumentType ||
                     (DocumentType.Equals(input.DocumentType))
                 ) &&
                 (
                     DocumentContent == input.DocumentContent ||
                     (DocumentContent != null &&
                      DocumentContent.Equals(input.DocumentContent))
                 ) &&
                 (
                     DocumentUrl == input.DocumentUrl ||
                     (DocumentUrl != null &&
                      DocumentUrl.Equals(input.DocumentUrl))
                 ) &&
                 (
                     Test == input.Test ||
                     (Test != null &&
                      Test.Equals(input.Test))
                 ) &&
                 (
                     Pipeline == input.Pipeline ||
                     (Pipeline != null &&
                      Pipeline.Equals(input.Pipeline))
                 ) &&
                 (
                     Strict == input.Strict ||
                     (Strict != null &&
                      Strict.Equals(input.Strict))
                 ) &&
                 (
                     IgnoreResourceErrors == input.IgnoreResourceErrors ||
                     (IgnoreResourceErrors != null &&
                      IgnoreResourceErrors.Equals(input.IgnoreResourceErrors))
                 ) &&
                 (
                     IgnoreConsoleMessages == input.IgnoreConsoleMessages ||
                     (IgnoreConsoleMessages != null &&
                      IgnoreConsoleMessages.Equals(input.IgnoreConsoleMessages))
                 ) &&
                 (
                     Tag == input.Tag ||
                     (Tag != null &&
                      Tag.Equals(input.Tag))
                 ) &&
                 (
                     Help == input.Help ||
                     (Help != null &&
                      Help.Equals(input.Help))
                 ) &&
                 (
                     Javascript == input.Javascript ||
                     (Javascript != null &&
                      Javascript.Equals(input.Javascript))
                 ) &&
                 (
                     Referrer == input.Referrer ||
                     (Referrer != null &&
                      Referrer.Equals(input.Referrer))
                 ) &&
                 (
                     CallbackUrl == input.CallbackUrl ||
                     (CallbackUrl != null &&
                      CallbackUrl.Equals(input.CallbackUrl))
                 ) &&
                 (
                     HostedDownloadLimit == input.HostedDownloadLimit ||
                     (HostedDownloadLimit != null &&
                      HostedDownloadLimit.Equals(input.HostedDownloadLimit))
                 ) &&
                 (
                     HostedExpiresAt == input.HostedExpiresAt ||
                     (HostedExpiresAt != null &&
                      HostedExpiresAt.Equals(input.HostedExpiresAt))
                 ) &&
                 (
                     ReferenceEquals(PrinceOptions, input.PrinceOptions) ||
                     (PrinceOptions != null &&
                      PrinceOptions.Equals(input.PrinceOptions))
                 ));
        }