Example #1
0
        public override bool Equals(object obj)
        {
            if (obj == this)
            {
                return(true);
            }
            ImmutableObjectAttribute attribute = obj as ImmutableObjectAttribute;

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

            ImmutableObjectAttribute other = obj as ImmutableObjectAttribute;

            return(other != null && other.Immutable == this.immutable);
        }
        // Determine if two object are equal.
        public override bool Equals(Object obj)
        {
            ImmutableObjectAttribute other =
                (obj as ImmutableObjectAttribute);

            if (other != null)
            {
                return(other.immutable == immutable);
            }
            else
            {
                return(false);
            }
        }