File: src\Shared\FxPolyfills\ExceptionDispatchInfo.cs | Web Access |
Project: src\src\Libraries\Microsoft.Extensions.ServiceDiscovery\Microsoft.Extensions.ServiceDiscovery.csproj (Microsoft.Extensions.ServiceDiscovery) |
// 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(); } } } |