我的字典键是另一个字典。例如,如果我的字典(“游戏”)包含键“我的名字”,我如何查看?我有这样的事情:
Dictionary<string,List<ChatClient>> rooms = new Dictionary<string, List<ChatClient>>();
Dictionary<Dictionary<string, List<ChatClient>>, IGame> games = new Dictionary<Dictionary<string, List<ChatClient>>, IGame>();
public void CreateAGame(string roomName, IGame game) {
if (rooms.ContainsKey(roomName)) {
games.Add(rooms, game);
}
}