public void MethodWithAspect() { Aspect.LogException(() => { var dummy = new string('a', 10); Console.WriteLine(dummy); }); }