public void Add(Person person) { foreach (Person p in List) { if (p.ID == person.ID) { return; } } List.Add(person); }
public void Delete(Person person) { List.Remove(person); }
public PersonTester() { Me = new Person("Vlad", "Tsvang"); Professor = new Person("Paramsothy", "Thananjeyan"); }
public Student(Person person, string group) : base(person) { Group = group; }
public AddressBookTester() { Book = new AddressBook(); Me = new Person("Vlad", "Tsvang"); Professor = new Person("Paramsothy", "Thananjeyan"); }