Technical requirements
To follow along with the examples in this chapter, the following software is recommended for Windows developers:
- Visual Studio 2022 version 17.0 or later.
- .NET 6.
- To complete any WinForms or WPF samples, you will need to install the .NET desktop development workload for Visual Studio. These projects will run only on Windows.
While these are recommended, if you have .NET 6 installed, you can use your preferred editor. For example, Visual Studio 2022 for Mac on macOS 10.13 or later, JetBrains Rider, or Visual Studio Code will work just as well.
All the code examples for this chapter can be found on GitHub at https://github.com/PacktPublishing/Parallel-Programming-and-Concurrency-with-C-sharp-10-and-.NET-6/tree/main/chapter09.
Let’s get started by learning more about BlockingCollection<T>
and walk through a sample project that leverages the collection.