[System.Security.SecuritySafeCritical]  // auto-generated
        public override bool Equals(Object o)
        {
            CodeGroup that = (o as CodeGroup);

            if (that != null && this.GetType().Equals(that.GetType()))
            {
                if (Equals(this.m_name, that.m_name) &&
                    Equals(this.m_description, that.m_description))
                {
                    if (this.m_membershipCondition == null && this.m_element != null)
                    {
                        this.ParseMembershipCondition();
                    }
                    if (that.m_membershipCondition == null && that.m_element != null)
                    {
                        that.ParseMembershipCondition();
                    }

                    if (Equals(this.m_membershipCondition, that.m_membershipCondition))
                    {
                        return(true);
                    }
                }
            }
            return(false);
        }
Exemplo n.º 2
0
        public override bool Equals(object o)
        {
            CodeGroup group = o as CodeGroup;

            if (((group != null) && base.GetType().Equals(group.GetType())) && (object.Equals(this.m_name, group.m_name) && object.Equals(this.m_description, group.m_description)))
            {
                if ((this.m_membershipCondition == null) && (this.m_element != null))
                {
                    this.ParseMembershipCondition();
                }
                if ((group.m_membershipCondition == null) && (group.m_element != null))
                {
                    group.ParseMembershipCondition();
                }
                if (object.Equals(this.m_membershipCondition, group.m_membershipCondition))
                {
                    return(true);
                }
            }
            return(false);
        }
Exemplo n.º 3
0
        public override bool Equals(object o)
        {
            CodeGroup codeGroup = o as CodeGroup;

            if (codeGroup != null && this.GetType().Equals(codeGroup.GetType()) && (object.Equals((object)this.m_name, (object)codeGroup.m_name) && object.Equals((object)this.m_description, (object)codeGroup.m_description)))
            {
                if (this.m_membershipCondition == null && this.m_element != null)
                {
                    this.ParseMembershipCondition();
                }
                if (codeGroup.m_membershipCondition == null && codeGroup.m_element != null)
                {
                    codeGroup.ParseMembershipCondition();
                }
                if (object.Equals((object)this.m_membershipCondition, (object)codeGroup.m_membershipCondition))
                {
                    return(true);
                }
            }
            return(false);
        }