Пример #1
0
        public override bool Equals(object o)
        {
            if (!(o is EmailSmtpSettings))
            {
                return(false);
            }
            EmailSmtpSettings v = o as EmailSmtpSettings;

            if (!AccountId.Equals(v.AccountId))
            {
                return(false);
            }
            if (!AddSignature.Equals(v.AddSignature))
            {
                return(false);
            }
            if (!AdditionalAttachments.SequenceEqual(v.AdditionalAttachments))
            {
                return(false);
            }
            if (!Content.Equals(v.Content))
            {
                return(false);
            }
            if (!Enabled.Equals(v.Enabled))
            {
                return(false);
            }
            if (!Html.Equals(v.Html))
            {
                return(false);
            }
            if (!Recipients.Equals(v.Recipients))
            {
                return(false);
            }
            if (!RecipientsBcc.Equals(v.RecipientsBcc))
            {
                return(false);
            }
            if (!RecipientsCc.Equals(v.RecipientsCc))
            {
                return(false);
            }
            if (!Subject.Equals(v.Subject))
            {
                return(false);
            }
            return(true);
        }
Пример #2
0
        public override bool Equals(object o)
        {
            if (!(o is EmailClientSettings))
            {
                return(false);
            }
            EmailClientSettings v = o as EmailClientSettings;

            if (!AddSignature.Equals(v.AddSignature))
            {
                return(false);
            }
            if (!Content.Equals(v.Content))
            {
                return(false);
            }
            if (!Enabled.Equals(v.Enabled))
            {
                return(false);
            }
            if (!Html.Equals(v.Html))
            {
                return(false);
            }
            if (!Recipients.Equals(v.Recipients))
            {
                return(false);
            }
            if (!RecipientsBcc.Equals(v.RecipientsBcc))
            {
                return(false);
            }
            if (!RecipientsCc.Equals(v.RecipientsCc))
            {
                return(false);
            }
            if (!Subject.Equals(v.Subject))
            {
                return(false);
            }

            return(true);
        }