How to insert element in first index in dictionary?

前端 未结 9 1027
被撕碎了的回忆
被撕碎了的回忆 2020-12-17 10:09

Is there a method or technique that allows you to insert an element into a Dictionary guaranteeing that the item is in the first index of t

9条回答
  •  独厮守ぢ
    2020-12-17 10:31

    Dictionary is inherently unordered (or rather, the ordering is unpredictable and shouldn't be relied upon). If you want some sort of ordering, you need to use a different type. It's hard to recommend any particular type without knowing more about your requirements.

提交回复
热议问题