我有一个看起来像的文本文件
tabs.main="******"
tabs.settings="******"
settings.setting1="******"
settings.setting2="******"
settings.setting3="******"
settings.setting4="******"
settings.setting5.title="******"
settings.setting5.settingoption1="******"
settings.setting5.settingoption2="******"
我想做的就是把它解析成一个多层次的字典。例如,我有一个看起来像这样的根字典,Dictionary<string, object>
其中我将拥有Dictionary<string, object>
它们本身的选项卡和设置。以图形形式,我想要的是:
Dictionary<string, object>
-> Dictionary<"tabs", object>
-> Dictionary<"main", "*******">
-> Dictionary<"settings", "*******">
-> Dictionary<"settings", object>
-> Dictionary<"setting1", "*******">
等等等等。这可能吗?如果是这样,有人可以给我一个正确方向的指针。