Chapter 8: Advanced Topics
In the previous chapters, we learned about the language syntax, data types, working with classes and structures, generics, collections, and other topics that have equipped you with the knowledge necessary to write at least simple C# programs. However, there's more to the language than that and in this chapter, we will explore more advanced concepts. This will include delegates, which are key for functional and asynchronous programming that we cover later in this book, as well as various forms of pattern matching including regular expressions for texts.
The topics that we will discuss are as follows:
- Delegates and events
- Anonymous types
- Tuples
- Pattern matching
- Regular expressions
- Extension methods
After completing this chapter, you will understand how to use delegates to respond to events that occur in your application, how to use tuples to handle multiple values without introducing new types, how to perform pattern...