/// <summary> /// Gets all the information about the Tennis_Management_Software.Person except their ID. /// </summary> /// <returns></returns> protected string GetAllInformation() { string _dateOfBirth = DateOfBirth.Day.ToString() + "/" + DateOfBirth.Month.ToString() + "/" + DateOfBirth.Year.ToString(); string information = "Name: " + Name + "\nSurname: " + Surname + "\nAge: " + Age.ToString() + "\nDate of birth: " + _dateOfBirth + "\nGender: " + GetGender() + "\nPhone number: " + PhoneNumber.ToString() + "\nHome phone number: " + HomePhoneNumber.ToString() + "\nHome address: " + HomeAddress + "\nE-mail: " + Email; return(information); }
public override int GetHashCode() { int hash = 1; if (entityId_ != null) { hash ^= EntityId.GetHashCode(); } if (FirstName.Length != 0) { hash ^= FirstName.GetHashCode(); } if (LastName.Length != 0) { hash ^= LastName.GetHashCode(); } if (HomeAddress1.Length != 0) { hash ^= HomeAddress1.GetHashCode(); } if (HomeAddress2.Length != 0) { hash ^= HomeAddress2.GetHashCode(); } if (HomeCity.Length != 0) { hash ^= HomeCity.GetHashCode(); } if (HomeState.Length != 0) { hash ^= HomeState.GetHashCode(); } if (HomeZip.Length != 0) { hash ^= HomeZip.GetHashCode(); } if (HomeNation.Length != 0) { hash ^= HomeNation.GetHashCode(); } if (HomePhoneNumber.Length != 0) { hash ^= HomePhoneNumber.GetHashCode(); } if (OfficeAddress1.Length != 0) { hash ^= OfficeAddress1.GetHashCode(); } if (OfficeAddress2.Length != 0) { hash ^= OfficeAddress2.GetHashCode(); } if (OfficeCity.Length != 0) { hash ^= OfficeCity.GetHashCode(); } if (OfficeState.Length != 0) { hash ^= OfficeState.GetHashCode(); } if (OfficeZip.Length != 0) { hash ^= OfficeZip.GetHashCode(); } if (OfficeNation.Length != 0) { hash ^= OfficeNation.GetHashCode(); } if (OfficePhoneNumber.Length != 0) { hash ^= OfficePhoneNumber.GetHashCode(); } if (MobilePhoneNumber.Length != 0) { hash ^= MobilePhoneNumber.GetHashCode(); } if (FaxNumber.Length != 0) { hash ^= FaxNumber.GetHashCode(); } if (EmailAddress.Length != 0) { hash ^= EmailAddress.GetHashCode(); } if (IsBlacklisted != false) { hash ^= IsBlacklisted.GetHashCode(); } if (CompanyName.Length != 0) { hash ^= CompanyName.GetHashCode(); } if (GivenName2.Length != 0) { hash ^= GivenName2.GetHashCode(); } return(hash); }