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 ...

Get .NET 4.0 Generics now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.