📜  嵌套字典 c# 代码示例

📅  最后修改于: 2022-03-11 14:48:48.929000             🧑  作者: Mango

代码示例1
public Dictionary> info =
    new Dictionary>
    {
        {
            "Gen",
            new Dictionary
            {
                {"name", "Genesis"},
                {"chapters", "50"},
                {"before", ""},
                {"after", "Exod"}
            }
        },
        {
            "Exod",
            new Dictionary
            {
                {"name", "Exodus"},
                {"chapters", "40"},
                {"before", "Gen"},
                {"after", "Lev"}
            }
        }
    };