public bool addPlayer(Player player) { if (roster.Contains(player)) { throw new ArgumentException(String.Format("Wrong argument passed to method. Player {0} already exists", player)); } Byte playerCount = (Byte)roster.Count; roster.Add(player); return roster.Count - 1 == playerCount; }
public bool removePlayer(Player player) { return roster.Remove(player); }