Exemplo n.º 1
0
        /// <summary>
        /// Equality comparer.
        /// </summary>
        /// <param name="obj">Meant to be other PhoneCallInfo object.</param>
        /// <returns>Returns true if the two objects are equal, otherwise false.</returns>
        public override bool Equals(object obj)
        {
            if (obj == this)
            {
                return(true);
            }

            PhoneCallInfo other = obj as PhoneCallInfo;

            if (other == null)
            {
                return(false);
            }

            return
                (CallID.Equals(other.CallID) &&
                 PhoneLineInfo.Equals(other.PhoneLineInfo));
        }