예제 #1
0
 public void AddDog(Dog d)
 {
     if (d != null && Dogs.Contains(d) == false)
     {
         Dogs.Add(d);
         d.AddBoss(this);
     }
 }
예제 #2
0
 public void AddDog(string nickname, Dog dog)
 {
     if (!this.dogs.Contains(nickname) && !this.dogs.Count == limit)
     {
         this.dogs.Add(nickname, dog);
         dog.AddBoss(this);
     }
 }