Files
Recyclable.Collections/Recyclable.Collections/ExceptionExtensions.cs
T

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();
}
}
}