/// <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;
        }
예제 #2
0
        public override bool Equals(object obj)
        {
            if (obj == this)
            {
                return(true);
            }
            DesignerSerializationVisibilityAttribute attribute = obj as DesignerSerializationVisibilityAttribute;

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