static private GetNestedStackFrames ( |
||
e | ||
return | IEnumerable |
static IEnumerable<StackFrame> GetNestedStackFrames(Exception e) =>
e == null
? Enumerable.Empty<StackFrame>()
: GetNestedStackFrames(e.InnerException).Concat(new StackTrace(e, 0, true).GetFrames() ?? Enumerable.Empty<StackFrame>());
}