public Member Read(Member toBeRead) { foreach (Member member in members) { member.Equals(toBeRead); return member; } return null; }
public Member Delete(Member toBeDeleted) { foreach (Member member in members) { member.Equals(toBeDeleted); members.Remove(toBeDeleted); if(members.Count == 0) break; } return toBeDeleted; }
public Member Update(Member toBeUpdated) { foreach (Member member in members) { member.Equals(toBeUpdated); return toBeUpdated; } return null; }
public Member AddMember(Member member) { members.Add(member); return member; }
public bool Equals(Member member) { return this.SSN == member.SSN; }