Ejemplo n.º 1
0
 /// <summary>
 /// Returns a hash code for this instance.
 /// </summary>
 /// <returns>
 /// A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.
 /// </returns>
 public override int GetHashCode()
 {
     unchecked
     {
         int result = (CitizenshipCountry != null ? CitizenshipCountry.GetHashCode() : 0);
         result = (result * 397) ^ (ImmigrationStatus != null ? ImmigrationStatus.GetHashCode() : 0);
         result = (result * 397) ^ (CustodialStatus != null ? CustodialStatus.GetHashCode() : 0);
         return(result);
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PatientLegalInfo"/> class.
 /// </summary>
 /// <param name="citizenshipCountry">The citizenship country.</param>
 /// <param name="immigrationStatus">The immigration status.</param>
 /// <param name="custodialStatus">The custodial status.</param>
 public PatientLegalInfo(Country citizenshipCountry, ImmigrationStatus immigrationStatus, CustodialStatus custodialStatus)
 {
     CitizenshipCountry = citizenshipCountry;
     ImmigrationStatus  = immigrationStatus;
     CustodialStatus    = custodialStatus;
 }