コード例 #1
0
        public override bool Equals(object obj)
        {
            if (obj == this)
            {
                return(true);
            }
            DesignOnlyAttribute attribute = obj as DesignOnlyAttribute;

            return((attribute != null) && (attribute.isDesignOnly == this.isDesignOnly));
        }
コード例 #2
0
        public override bool Equals(object obj)
        {
            if (obj == this)
            {
                return(true);
            }

            DesignOnlyAttribute other = obj as DesignOnlyAttribute;

            return((other != null) && other.isDesignOnly == isDesignOnly);
        }