Exemple #1
0
 public void MergeFrom(Person other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Surname.Length != 0)
     {
         Surname = other.Surname;
     }
     if (other.Forename.Length != 0)
     {
         Forename = other.Forename;
     }
     otherNames_.Add(other.otherNames_);
     if (other.Salutation.Length != 0)
     {
         Salutation = other.Salutation;
     }
     if (other.Suffix.Length != 0)
     {
         Suffix = other.Suffix;
     }
     if (other.DisplayName.Length != 0)
     {
         DisplayName = other.DisplayName;
     }
     if (other.Gender != global::PKIo.Gender.NotKnown)
     {
         Gender = other.Gender;
     }
     if (other.dateOfBirth_ != null)
     {
         if (dateOfBirth_ == null)
         {
             DateOfBirth = new global::PKIo.Date();
         }
         DateOfBirth.MergeFrom(other.DateOfBirth);
     }
     if (other.EmailAddress.Length != 0)
     {
         EmailAddress = other.EmailAddress;
     }
     if (other.MobileNumber.Length != 0)
     {
         MobileNumber = other.MobileNumber;
     }
     if (other.ExternalId.Length != 0)
     {
         ExternalId = other.ExternalId;
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }