public override bool Equals(object o)
        {
            PublisherMembershipCondition condition = o as PublisherMembershipCondition;

            if (condition != null)
            {
                if ((this.m_certificate == null) && (this.m_element != null))
                {
                    this.ParseCertificate();
                }
                if ((condition.m_certificate == null) && (condition.m_element != null))
                {
                    condition.ParseCertificate();
                }
                if (Publisher.PublicKeyEquals(this.m_certificate, condition.m_certificate))
                {
                    return(true);
                }
            }
            return(false);
        }
Beispiel #2
0
        public override bool Equals(Object o)
        {
            PublisherMembershipCondition that = (o as PublisherMembershipCondition);

            if (that != null)
            {
                if (this.m_certificate == null && this.m_element != null)
                {
                    this.ParseCertificate();
                }
                if (that.m_certificate == null && that.m_element != null)
                {
                    that.ParseCertificate();
                }

                if (Publisher.PublicKeyEquals(this.m_certificate, that.m_certificate))
                {
                    return(true);
                }
            }
            return(false);
        }