public void JoinChat(ChatRoom room, string password) { if (!room.TestPassword(password)) throw new ArgumentException("Incorrect password"); room.Password = password; JoinChat(room); }
public void JoinChat(ChatRoom room, string password) { if (!room.TestPassword(password)) throw new ArgumentException("Incorrect password"); room.Password = password; JoinChat(room); }