Beispiel #1
0
        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.
            ForeignCitizenNames foreignCitizenNames = obj as ForeignCitizenNames;

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

            return(this.FirstCyrillic == foreignCitizenNames.FirstCyrillic
                   &&
                   this.FirstLatin == foreignCitizenNames.FirstLatin
                   &&
                   this.LastCyrillic == foreignCitizenNames.LastCyrillic
                   &&
                   this.LastLatin == foreignCitizenNames.LastLatin
                   &&
                   this.OtherCyrillic == foreignCitizenNames.OtherCyrillic
                   &&
                   this.OtherLatin == foreignCitizenNames.OtherLatin
                   &&
                   this.PseudonimCyrillic == foreignCitizenNames.PseudonimCyrillic
                   &&
                   this.PseudonimLatin == foreignCitizenNames.PseudonimLatin);
        }
 /// <summary>
 /// ForeignCitizenBasicData class constructor
 /// </summary>
 public ForeignCitizenBasicData()
 {
     this.identityDocumentField = new ForeignCitizenIdentityDocument();
     this.placeOfBirthField     = new ForeignCitizenPlaceOfBirth();
     this.namesField            = new ForeignCitizenNames();
 }