.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!!
HankinCooperAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

elimesikaCommented:
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)
0
elimesikaCommented:
BTW

A Dictionary is one of the collections supported in .NET , the term Collection , is general , so , your questions is actually what is the best collection for name/value manipulations and the answer is Dictionary ....
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
HankinCooperAuthor Commented:
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!!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
.NET Programming

From novice to tech pro — start learning today.