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))); }
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)); }
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)); }
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)))); }