[Serializable] public class LoggingAspect : OnExceptionAspect
Console.WriteLine($"Exiting method args.Method.Name"); postsharp
[LoggingAspect] public void MyMethod()
PostSharp provides several "ready-made" implementations for common patterns that significantly reduce code volume: postsharp