阅读背景:

我应该将词典用于10个或更少项目的馆藏,还是有更好的选择?

来源:互联网 

I have a list of objects and I need to find an object as quickly as possible (by it's name property). What data-structure should I use? I know I can use a Dictionary, but there wont ever be more than 10 items in the list, and if I remember correctly the dictionary is implemented as an array if the collection contains 10 items or less.I have a list of objects and I need to find an




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: