Пример #1
0
 public PersonalityData(string name, int age, string description, GenderData genderData)
 {
     this.Name        = name;
     this.Age         = age;
     this.Description = description;
     this.genderData  = genderData;
 }
Пример #2
0
        public GenderData Clone()
        {
            GenderData r = null;

            //r.Pronoun = this.Pronoun;
            //r.PronounAcc = this.PronounAcc;
            //r.PronounGenitive = this.PronounGenitive;
            //r.PronounReflexive = this.PronounReflexive;
            if (this.data.UseGenderEnum)
            {
                r = new GenderData(this.data.Gender);
            }
            else
            {
                r = new GenderData(this.Pronoun, this.PronounGenitive, this.PronounAcc, this.PronounReflexive);
            }
            return(r);
        }