Accessing a Dictionary.Keys Key through a numeric index

前端 未结 15 1227
失恋的感觉
失恋的感觉 2020-12-07 13:49

I\'m using a Dictionary where the int is a count of the key.

Now, I need to access the last-inserted Key inside the Dict

15条回答
  •  爱一瞬间的悲伤
    2020-12-07 14:10

    You can use an OrderedDictionary.

    Represents a collection of key/value pairs that are accessible by the key or index.

提交回复
热议问题