Sorting a Dictionary in place with respect to keys

前端 未结 7 1259
广开言路
广开言路 2020-11-29 04:49

I have a dictionary in C# like

Dictionary

and I want to sort that dictionary in place with respect to keys (a f

7条回答
  •  死守一世寂寞
    2020-11-29 05:27

    By design, dictionaries are not sortable. If you need this capability in a dictionary, look at SortedDictionary instead.

提交回复
热议问题