Is it possible to sort a HashTable?

前端 未结 11 736
不知归路
不知归路 2021-01-17 10:13

I have a property that returns a HashTable. I would like to sort it without refactoring my property. Please note: I do not want to return another type.

11条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-17 11:12

    Sorry, but you can't sort hashtable. You will have to refactor your code to use some sortable collections.

提交回复
热议问题