Пример #1
0
        public override bool Equals(object obj)
        {
            // This should be overridden by all the child classes to avoid
            // the ToString() operation.  This is a stopgap solution only.
            if (obj == null)
            {
                return(false);
            }
            if (obj == this)
            {
                return(true);
            }
            RCValue other = obj as RCValue;

            if (other == null)
            {
                return(false);
            }
            string thisText  = this.ToString();
            string otherText = other.ToString();

            return(thisText.Equals(otherText));
        }