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