Skip to content

Commit

Permalink
added todo for #642
Browse files Browse the repository at this point in the history
  • Loading branch information
dadhi committed Aug 29, 2024
1 parent 91f6499 commit bda9b8d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/DryIoc/Container.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15721,6 +15721,7 @@ public static class ReflectionTools
#else
private static Lazy<Action<Exception>> _preserveExceptionStackTraceAction = new Lazy<Action<Exception>>(() =>
typeof(Exception).GetSingleMethodOrNull("InternalPreserveStackTrace", true)
// todo: @wip #642 @fixme assert the method has single parameter of Exception and void return type.
?.To(x => x.CreateDelegate(typeof(Action<Exception>)).To<Action<Exception>>()));
private static void InternalPreserveStackTrace(Exception exception) =>
_preserveExceptionStackTraceAction.Value?.Invoke(exception);
Expand Down

0 comments on commit bda9b8d

Please sign in to comment.