private static void EnsureCreator(ChatUser user, ChatRoom room) { if (user != room.Creator) { throw new InvalidOperationException("You are not the creator of " + room.Name); } }