public bool Equals(PublishedItem other) { if (other == null || other.Publisher == null) { return(false); } return(SubjectId.Equals(other.SubjectId) && Identifier.Equals(other.Identifier) && PublisherTypeName.Equals(GetPublisherTypeName(other)) && PublisherIdentifier.Equals(other.Publisher.Identifier) && (PublisherAdditionalInfo?.Equals(other.Publisher.AdditionalInfo) ?? true)); }
public bool Equals(RuleSubject other) { return (SubjectId.Equals(other.SubjectId) && SubjectType == other.SubjectType); }