-
Book Overview & Buying
-
Table Of Contents
.NET 4.0 Generics Beginner's Guide
By :
The following are the top 20 parameters to consider when selecting a generic collection:
1. Simple or associative
2. Random access capability
3. Lookup speed
4. Random insertion speed
5. Edge insertion speed
6. Random deletion speed
7. Edge deletion speed
8. Speed to empty
9. Time to count
10. Zero-based indexing
11. Native sorting capability
12. Thread safety
13. Interoperability
14. Platform portability
15. Memory requirement
16. Construction versatility
17. Native bsearch support
18. Speed of set operations
19. Code readability
20. Least effort to migrate
None of these facilities come in a single collection. So you need to deal with calculated tread-off and strike a balance between computational cost and optimum performance.
The parameters are explained as follows:
1. Simple or associative:
If you want to store a few elements in a random order then you don’t need an associative collection. Simple lists are IList<T> based where as associative collections are IDictionary<TKey...
Change the font size
Change margin width
Change background colour