私のディクショナリ キーは別のディクショナリです。たとえば、自分のディクショナリ ("games") に "myname" が含まれているかどうかを確認するにはどうすればよいですか? 私はこのようなものを持っています:
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);
}
}