Есть следующий код:
Func(); // I want debugger to highlight this line when exception is happened within Func.
[DebuggerHidden] // or [DebuggerNonUserCode]
private static void Func() {
Action act = () => throw new Exception(); // But debugger highlights this line.
act();
}
Два вопроса: почему и как это исправить?