ExceptionServicesImpl
using System.Diagnostics.CodeAnalysis;
using System.Runtime.CompilerServices;
using System.Runtime.ExceptionServices;
namespace System.Reactive.PlatformServices
{
internal sealed class ExceptionServicesImpl : IExceptionServices
{
[System.Runtime.CompilerServices.NullableContext(1)]
[System.Diagnostics.CodeAnalysis.DoesNotReturn]
public void Rethrow(Exception exception)
{
ExceptionDispatchInfo.Capture(exception).Throw();
}
}
}