示例#1
0
        /// <summary>
        /// Override the Equals implementation
        /// </summary>
        /// <param name="obj">The System.Object to compare with the current instance.</param>
        /// <returns>Returns true is given object is equal to current instance</returns>
        public override bool Equals(object obj)
        {
            ServiceRequestInformation status = obj as ServiceRequestInformation;

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

            return(Equals(status));
        }
示例#2
0
        /// <summary>
        /// Determines whether the specified ServiceRequestInformation is equal to the current instance.
        /// </summary>
        /// <param name="obj">The ServiceRequestInformation to compare with the current instance.</param>
        /// <returns>Returns true is given ServiceRequestInformation is equal to current instance</returns>
        public bool Equals(ServiceRequestInformation obj)
        {
            if (obj == null)
            {
                throw new ArgumentNullException("obj");
            }

            if (Status != obj.Status || StatusInformation != obj.StatusInformation)
            {
                return(false);
            }

            return(true);
        }