public override bool Equals(object obj)
        {
            if (obj == this)
            {
                return(true);
            }
            MergablePropertyAttribute attribute = obj as MergablePropertyAttribute;

            return((attribute != null) && (attribute.AllowMerge == this.allowMerge));
        }
Exemple #2
0
        /// <internalonly/>
        /// <devdoc>
        /// </devdoc>
        public override bool Equals(object obj)
        {
            if (obj == this)
            {
                return(true);
            }

            MergablePropertyAttribute other = obj as MergablePropertyAttribute;

            return(other != null && other.AllowMerge == this.allowMerge);
        }
 static MergablePropertyAttribute()
 {
     Yes     = new MergablePropertyAttribute(true);
     No      = new MergablePropertyAttribute(false);
     Default = Yes;
 }