예제 #1
0
 public void SetDefaultCasing()
 {
     Name?.SetDefaultCasing();
     Email = Email?.ToLower();
     Phone = Phone?.ToUpper();
     Address?.SetDefaultCasing();
     NationalityCode = NationalityCode?.ToUpper();
 }
예제 #2
0
 public override int GetHashCode()
 {
     unchecked
     {
         int hash = 23;
         hash = hash * 37 + Id.GetHashCode();
         hash = hash * 37 + (Number != null ? Number.GetHashCode() : 0);
         hash = hash * 37 + (FullName != null ? FullName.GetHashCode() : 0);
         hash = hash * 37 + (NationalityCode != null ? NationalityCode.GetHashCode() : 0);
         hash = hash * 37 + (Nationality != null ? Nationality.GetHashCode() : 0);
         hash = hash * 37 + (BirthYear != null ? BirthYear.GetHashCode() : 0);
         hash = hash * 37 + (Position != null ? Position.GetHashCode() : 0);
         hash = hash * 37 + (Height != null ? Height.GetHashCode() : 0);
         return(hash);
     }
 }