14
Aspect-Oriented Programming
Throughout the book, you should have noticed a theme: automation. This means writing code that makes your code easier, more maintainable, and takes away repetitive work. In Chapter 13, Applying Cross-Cutting Concerns, we talked about code that could be created for a specific concern and be automatically applied. In this chapter, we will take this concept to the next level and dive into a formalization that is designed for this purpose; aspect-oriented programming (AOP).
In this chapter, we will cover the following topics:
- What is AOP?
- Logging
- Mixins
- Authorization
By the end of this chapter, you should have a solid understanding of AOP and how it can be used in C# to create more modular, maintainable, and scalable ...
Get Metaprogramming in C# now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.