-
Book Overview & Buying
-
Table Of Contents
.NET 4.0 Generics Beginner's Guide
By :

"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.comthat are below $20A 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 of the examples you can think of, where you would need a mechanism to associate one variable with another. The fun factor is that all these situations can be represented conceptually using the same structure the same structure where some fields will be accessible very quickly using some other unique variable. This structure is known as Dictionary in C#....
Change the font size
Change margin width
Change background colour