//------------------------------------------------------
        //
        //  Public Methods
        //
        //------------------------------------------------------

        /// <summary>
        ///     Overrides Object.Equals to implement correct equality semantics for this
        ///     attribute.
        /// </summary>
        public override bool Equals(object obj)
        {
            AttachedPropertyBrowsableForChildrenAttribute other = obj as AttachedPropertyBrowsableForChildrenAttribute;

            if (other == null)
            {
                return(false);
            }
            return(_includeDescendants == other._includeDescendants);
        }
Ejemplo n.º 2
0
        /// <summary>Determines whether the current <see cref="T:System.Windows.AttachedPropertyBrowsableForChildrenAttribute" /> .NET Framework attribute is equal to a specified object.</summary>
        /// <param name="obj">The <see cref="T:System.Windows.AttachedPropertyBrowsableForChildrenAttribute" /> to compare to the current <see cref="T:System.Windows.AttachedPropertyBrowsableForChildrenAttribute" />.</param>
        /// <returns>
        ///     <see langword="true" /> if the specified <see cref="T:System.Windows.AttachedPropertyBrowsableForChildrenAttribute" /> is equal to the current <see cref="T:System.Windows.AttachedPropertyBrowsableForChildrenAttribute" />; otherwise, <see langword="false" />.</returns>
        // Token: 0x06000300 RID: 768 RVA: 0x000084A4 File Offset: 0x000066A4
        public override bool Equals(object obj)
        {
            AttachedPropertyBrowsableForChildrenAttribute attachedPropertyBrowsableForChildrenAttribute = obj as AttachedPropertyBrowsableForChildrenAttribute;

            return(attachedPropertyBrowsableForChildrenAttribute != null && this._includeDescendants == attachedPropertyBrowsableForChildrenAttribute._includeDescendants);
        }