Chapter 6: The .NET Collections
Collections are an integral part of .NET. There are different ways to use these collections. Microsoft .NET makes heavy use of arrays and collections when dealing with things such as datasets, arrays, lists, dictionaries, stacks, and queues. You will be hard-pressed to write a C# program without having to use the Collections Framework. The different ways of using the collections and arrays differ in terms of their performance degradation and performance improvement. Therefore, understanding when to use arrays and when to use collections will form an important aspect of your C# and .NET programming skills.
In this chapter, you will learn how to improve the performance of your collection operations. By using BenchmarkDotNet
with different versions of the code, you will be able to see the differences in performance and be in a position to choose the best method that suits your needs.
We will be covering the following topics in this chapter:
-
...