예제 #1
0
 public override void Add(Ninja ninja)
 {
     if (InternalMembers.Contains(ninja))
     {
         return;
     }
     InternalMembers.Add(ninja);
 }
예제 #2
0
 public override void Add(Ninja ninja)
 {
     if (InternalMembers.Contains(ninja))
     {
         throw new DuplicateNinjaException();
     }
     InternalMembers.Add(ninja);
 }
예제 #3
0
 public override void Add(Ninja ninja)
 {
     if (InternalMembers.Contains(ninja))
     {
         OnAddingDuplicateNinja(new AddingDuplicateNinjaEventArgs(ninja));
         return;
     }
     InternalMembers.Add(ninja);
 }