Exemplo n.º 1
0
        /// <summary>
        /// Returns a value indicating whether two <see cref="PersonName"/> are the same.
        /// </summary>
        /// <param name="other">Another <see cref="PersonName"/> to compare with</param>
        /// <param name="options">Comparison option</param>
        /// <returns>
        /// <b>true</b> if this person's name is the same as the other. <b>false</b> otherwise.
        /// </returns>
        public bool AreSame(PersonName other, PersonNameComparisonOptions options)
        {
            if (other == null)
            {
                return(false);
            }

            return
                (SingleByte.AreSame(other.SingleByte, options) &&
                 Phonetic.AreSame(other.Phonetic, options) &&
                 Ideographic.AreSame(other.Ideographic, options));
        }