Link to home
Start Free TrialLog in
Avatar of HankinCooper
HankinCooper

asked on

.NET 4 Design Question: Collection versus Dictionary

Should I use a name/value .NET Collection or a .NET name/value Dictionary for best performance? What is the best approach please? My application is ASP.NET, WCF/WF Web Application. There should be a range of 10 to 30 entries per collection. I also will need users to potentially change a couple entries at time.

I greatly appreciate your help!!
Avatar of elimesika
elimesika
Flag of Israel image

HI
The best approach for name/value is a dictionary since each operation in a dictionary has an order of 1 complexity (that means that no matter how many items you have in the dictionary, you are paying always the same lower price , generally , one operation to search an item or to insert a new one)
ASKER CERTIFIED SOLUTION
Avatar of elimesika
elimesika
Flag of Israel image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of HankinCooper
HankinCooper

ASKER

I have had "experts" in the past answer questions who clearly did not know what they are talking about, it is such a pleasure to have questions answered by true "experts". thank you very much!!