public override bool Equals(object obj)
        {
            // If parameter is null return false.
            if (obj == null)
            {
                return(false);
            }

            // If parameter cannot be cast to Point return false.
            ForeignCitizenPlaceOfBirth placeOfBirth = obj as ForeignCitizenPlaceOfBirth;

            if ((System.Object)placeOfBirth == null)
            {
                return(false);
            }

            return(this.CountryCode == placeOfBirth.CountryCode
                   &&
                   this.CountryName == placeOfBirth.CountryName
                   &&
                   this.SettlementName == placeOfBirth.SettlementName);
        }
 /// <summary>
 /// ForeignCitizenBasicData class constructor
 /// </summary>
 public ForeignCitizenBasicData()
 {
     this.identityDocumentField = new ForeignCitizenIdentityDocument();
     this.placeOfBirthField     = new ForeignCitizenPlaceOfBirth();
     this.namesField            = new ForeignCitizenNames();
 }