File: src\Shared\FxPolyfills\ExceptionDispatchInfo.cs | Web Access |
Project: src\src\Libraries\Microsoft.Extensions.ServiceDiscovery.Abstractions\Microsoft.Extensions.ServiceDiscovery.Abstractions.csproj (Microsoft.Extensions.ServiceDiscovery.Abstractions) |
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System.Diagnostics.CodeAnalysis; namespace System.Runtime.ExceptionServices; internal static partial class FxPolyfillExceptionDispatchInfo { extension(ExceptionDispatchInfo) { [DoesNotReturn] public static void Throw(Exception ex) { ExceptionDispatchInfo.Capture(ex).Throw(); } } } |