<PackageReference Include="System.Reactive" Version="6.0.0-preview.16" />

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