Skip to content

Instantly share code, notes, and snippets.

/Hoge.cs
Created Jul 3, 2015

Embed
What would you like to do?
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
You can’t perform that action at this time.