Postsharp

Postsharp

Console.WriteLine($"Entering method args.Method.Name");

MyMethod();

Here are some example use cases for PostSharp: postsharp

Master Guide: Maximizing Developer Productivity with PostSharp Console

// Catch all exceptions return typeof(Exception); Console.WriteLine($"Entering method args.Method.Name")

public override void OnExit(MethodExecutionArgs args)