Ejemplo n.º 1
0
        /// <summary>
        /// Returns true if ShinseishaResponse instances are equal
        /// </summary>
        /// <param name="other">Instance of ShinseishaResponse to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(ShinseishaResponse other)
        {
            if (other is null)
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     Shimei == other.Shimei ||
                     Shimei != null &&
                     Shimei.Equals(other.Shimei)
                     ) &&
                 (
                     ShimeiKana == other.ShimeiKana ||
                     ShimeiKana != null &&
                     ShimeiKana.Equals(other.ShimeiKana)
                 ));
        }