Is there a better data structure than Dictionary if the values are objects and a property of those objects are the keys?

前端 未结 4 1827
暖寄归人
暖寄归人 2021-01-18 02:27

I have a Dictionary where the int is a property of obj. Is there a better data structure for this? I feel like u

4条回答
  •  天命终不由人
    2021-01-18 03:06

    C# dynamic properties post seems to show that using a Dictionary was a popular choice. The other posts suggest using a HashTable

    Dictionary vs Hashtable

提交回复
热议问题