O'Reilly logo

.NET 4.0 Generics by Sudipta Mukherjee

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 3. Dictionaries

Dictionaries "To one" or "To many" that's the question.

In the last chapter, we have learnt about different generic list-based containers. Those are great for maintaining simple lists. However, they are not the best for storing associative relationships among different entities.

For example:

  • You might want to know how many electronic gadgets are available from amazon.com that are below $20

  • A football fanatic friend of mine wants to keep a count of how many times Real Madrid won over other teams in recent times

  • Your friend at the local electronics store dreams about a system that can auto-complete electronic part names

These are some ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required