/// <summary>
 /// Check Name equality.
 /// </summary>
 /// <param name="name"></param>
 /// <returns></returns>
 public bool Equals(Name name) => name == null ? false :
 Suffix.Equals(name.Suffix) &&
 (
     ReferenceEquals(this.Suffix, name.Suffix) ||
     Suffix != null &&
     Suffix.Equals(name.Suffix)
 ) &&
 (
     ReferenceEquals(this.First, name.First) ||
     First != null &&
     First.Equals(name.First)
 ) &&
 (
     ReferenceEquals(this.Middle, name.Middle) ||
     Middle != null &&
     Middle.Equals(name.Middle)
 ) &&
 (
     ReferenceEquals(this.Last, name.Last) ||
     Last != null &&
     Last.Equals(name.Last)
 ) &&
 (
     ReferenceEquals(this.Prefix, name.Prefix) ||
     Prefix != null &&
     Prefix.Equals(name.Prefix)
 ) &&
 (
     ReferenceEquals(this.IsOrganization, name.IsOrganization) ||
     IsOrganization.Equals(name.IsOrganization)
 );
 public bool Equals(IName other)
 {
     return(First.Equals(other.First, StringComparison.CurrentCultureIgnoreCase) &&
            Middle.Equals(other.Middle, StringComparison.CurrentCultureIgnoreCase) &&
            Last.Equals(other.Last, StringComparison.CurrentCultureIgnoreCase) &&
            Gender.Equals(other.Gender));
 }
Exemple #3
0
 public bool Equals(ViewValueDimensions other)
 {
     return(Width == other.Width &&
            Height == other.Height &&
            Middle.Equals(other.Middle) &&
            Left == other.Left &&
            Top == other.Top &&
            Right == other.Right &&
            Bottom == other.Bottom);
 }
Exemple #4
0
        public override bool Equals(object obj)
        {
            PersonNames personNames = obj as PersonNames;

            if (personNames == null)
            {
                return(false);
            }
            else
            {
                return
                    ((
                         (First == null &&
                          personNames.First == null)
                         ||
                         (First != null &&
                          First.Equals(personNames.First)))
                     &&
                     (
                         (Middle == null &&
                          personNames.Middle == null)
                         ||
                         (Middle != null &&
                          Middle.Equals(personNames.Middle)))
                     &&
                     (
                         (Last == null &&
                          personNames.Last == null)
                         ||
                         (Last != null &&
                          Last.Equals(personNames.Last)))
                     &&
                     (
                         (Pseudonim == null &&
                          personNames.Pseudonim == null)
                         ||
                         (Pseudonim != null &&
                          Pseudonim.Equals(personNames.Pseudonim))));
            }
        }