How do I create and populate a Dictionary using Unity's xml configuration?

后端 未结 2 1897
我寻月下人不归
我寻月下人不归 2021-01-23 07:30

How do I create and populate a Dictionary using Unity\'s xml configuration?

I need to create a Dictionary and populate the objects using dependency references in unity.<

2条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-23 07:55

    You would have to create some sort of parsing system.

    You can use the XML system in .Net to parse the XML code and then add it to the dictionary by doing dictionary.Add();

提交回复
热议问题