Files
Recyclable.Collections/Recyclable.Collections/ExceptionExtensions.cs
T
2023-10-21 17:26:35 +02:00

13 lines
242 B
C#

using System.Runtime.ExceptionServices;
namespace Recyclable.Collections
{
internal static class ExceptionExtensions
{
public static void CaptureAndReThrow(this Exception ex)
{
ExceptionDispatchInfo.Capture(ex).Throw();
}
}
}