/// <summary>
 /// Псевдоуникальный идентификатор сохранённого в репозитории объекта
 /// </summary>
 /// <param name="person">анкетируемый</param>
 /// <returns>идентификатор</returns>
 private string GetUniqueId(Person person)
 {
     return person != null ? string.Format(UNIQUE_ID_FORMAT, person.FullName, person.Birthday.ToFormatString()) : string.Empty;
 }
Exemplo n.º 2
0
 protected bool Equals(Person other)
 {
     return string.Equals(FullName, other.FullName) && Birthday.Equals(other.Birthday) && 
            Equals(Contact, other.Contact) && Equals(Education, other.Education);
 }
 public Questionary()
 {
     Person = new Person();
 }