diff --git a/src/DryIoc/Container.cs b/src/DryIoc/Container.cs index c5213f90..ae000c1d 100644 --- a/src/DryIoc/Container.cs +++ b/src/DryIoc/Container.cs @@ -15721,6 +15721,7 @@ public static class ReflectionTools #else private static Lazy> _preserveExceptionStackTraceAction = new Lazy>(() => 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)).To>())); private static void InternalPreserveStackTrace(Exception exception) => _preserveExceptionStackTraceAction.Value?.Invoke(exception);