コード例 #1
0
#pragma warning disable S1541 // Methods and properties should not be too complex
        public bool Equals(DsfExchangeEmailNewActivity other)
#pragma warning restore S1541 // Methods and properties should not be too complex
        {
            if (other is null)
            {
                return(false);
            }

            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            var isSourceEqual = CommonEqualityOps.AreObjectsEqual(SavedSource, other.SavedSource);

            return(base.Equals(other) &&
                   isSourceEqual &&
                   string.Equals(To, other.To) &&
                   string.Equals(Cc, other.Cc) &&
                   string.Equals(Bcc, other.Bcc) &&
                   string.Equals(Subject, other.Subject) &&
                   string.Equals(Attachments, other.Attachments) &&
                   string.Equals(Body, other.Body) &&
                   IsHtml == other.IsHtml &&
                   string.Equals(DisplayName, other.DisplayName) &&
                   string.Equals(Result, other.Result));
        }
コード例 #2
0
        public bool Equals(DsfExchangeEmailNewActivity other)
        {
            if (other is null)
            {
                return(false);
            }

            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            var isSourceEqual = CommonEqualityOps.AreObjectsEqual(SavedSource, other.SavedSource);

            return(base.Equals(other) &&
                   isSourceEqual &&
                   string.Equals(To, other.To) &&
                   string.Equals(Cc, other.Cc) &&
                   string.Equals(Bcc, other.Bcc) &&
                   string.Equals(Subject, other.Subject) &&
                   string.Equals(Attachments, other.Attachments) &&
                   string.Equals(Body, other.Body) &&
                   IsHtml == other.IsHtml &&
                   string.Equals(DisplayName, other.DisplayName) &&
                   string.Equals(Result, other.Result));
        }