/// <internalonly/>
        /// <devdoc>
        /// </devdoc>
        public override bool Equals(object obj) {
    
            if (obj == this) {
                return true;
            }

            DesignerSerializationVisibilityAttribute other = obj as DesignerSerializationVisibilityAttribute;
            return other != null && other.Visibility == visibility;
        }
        public override bool Equals(object obj)
        {
            if (obj == this)
            {
                return(true);
            }
            DesignerSerializationVisibilityAttribute attribute = obj as DesignerSerializationVisibilityAttribute;

            return((attribute != null) && (attribute.Visibility == this.visibility));
        }