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