How do I create a List of Dictionaries in .NET?

前端 未结 4 2049
清酒与你
清酒与你 2021-02-04 08:42

I am trying to create a List of Dictionary items. I am not sure how to add items in list and how to get back the values while traversing the list.

4条回答
  •  孤街浪徒
    2021-02-04 09:03

    A lot has changed in 5 years... You can now do the following:

    ListDictionary list = new ListDictionary();
    list.Add("Hello", "Test1");
    list.Add("Hello", "Test2");
    list.Add("Hello", "Test3");
    

    Enjoy!

提交回复
热议问题