How to insert an item into a key/value pair object?

后端 未结 7 978
长情又很酷
长情又很酷 2021-01-31 13:23

Ok...here\'s a softball question...

I just need to be able to insert a key/value pair into an object at a specific position. I\'m currently working with a Hashtable whic

7条回答
  •  失恋的感觉
    2021-01-31 14:01

    Hashtables are not inherently sorted, your best bet is to use another structure such as a SortedList or an ArrayList

提交回复
热议问题