예제 #1
0
            public bool Equals(NodeWarningProperties other)
            {
                if (other == null)
                {
                    return(false);
                }

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

                return(EqualityUtility.SetEqualsWithNullCheck(ProjectWide, other.ProjectWide) &&
                       EqualityUtility.DictionaryEquals(PackageSpecific, other.PackageSpecific, (s, o) => EqualityUtility.SetEqualsWithNullCheck(s, o)));
            }
예제 #2
0
        public bool Equals(WarningProperties other)
        {
            if (other == null)
            {
                return(false);
            }

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

            return(AllWarningsAsErrors == other.AllWarningsAsErrors &&
                   EqualityUtility.SetEqualsWithNullCheck(WarningsAsErrors, other.WarningsAsErrors) &&
                   EqualityUtility.SetEqualsWithNullCheck(NoWarn, other.NoWarn));
        }
예제 #3
0
        public bool Equals(TrustedSource other)
        {
            if (other == null)
            {
                return(false);
            }

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

            return(string.Equals(SourceName, other.SourceName, StringComparison.CurrentCultureIgnoreCase) &&
                   EqualityUtility.EqualsWithNullCheck(ServiceIndex, other.ServiceIndex) &&
                   EqualityUtility.SetEqualsWithNullCheck(Certificates, other.Certificates));
        }
예제 #4
0
        public bool Equals(PackageSpecificWarningProperties other)
        {
            if (other == null)
            {
                return(false);
            }

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

            return(EqualityUtility.DictionaryEquals(
                       Properties,
                       other.Properties,
                       (sv1, ov1) => EqualityUtility.DictionaryEquals(sv1, ov1, (sv2, ov2) => EqualityUtility.SetEqualsWithNullCheck(sv2, ov2))));
        }