Skip to content

Instantly share code, notes, and snippets.

Created July 3, 2015 11:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/fba7f9f4194bd6624776 to your computer and use it in GitHub Desktop.
Save anonymous/fba7f9f4194bd6624776 to your computer and use it in GitHub Desktop.
using System.Collections.Generic;
public class Hoge
{
// jsonを読み込んで作られたIDictionaryを使って初期化
public Hoge (IDictionary dict)
{
Dictionary<string, Dictionary<string, int>> fugaMap = dict["fuga"] as Dictionary<string, Dictionary<string, int>>; // nullになる
int fugaID = fugaMap["fugaID"]; // error!!
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment