public override void OnExit(MethodExecutionArgs args)
Here is an example of using PostSharp to implement a simple logging aspect: postsharp
throw new ArgumentException("Cannot apply logging aspect to non-method", nameof(method)); postsharp
Here are some key features of PostSharp: postsharp
The exception that had been plaguing John was now being properly logged and notified, and he was able to fix the underlying issue with ease. He was amazed at how PostSharp had simplified his code and made his life as a developer much easier.
static void Main(string[] args)