Skip to content

Commit

Permalink
Resolves #640 - Adds type-forwarders NET 5.0+ (#641)
Browse files Browse the repository at this point in the history
  • Loading branch information
VaticanUK authored Oct 1, 2024
1 parent 4a30725 commit 06156f9
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/NATS.Client.Core/Internal/netstandard.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,11 @@
#pragma warning disable SA1204
#pragma warning disable SA1405

#if NETSTANDARD

// Enable init only setters
#if NET5_0_OR_GREATER
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Runtime.CompilerServices.IsExternalInit))]
#elif NETSTANDARD

namespace System.Runtime.CompilerServices
{
internal static class IsExternalInit
Expand All @@ -33,7 +35,9 @@ internal sealed class SkipLocalsInitAttribute : Attribute
{
}
}
#endif

#if NETSTANDARD
namespace System.Diagnostics
{
internal sealed class StackTraceHiddenAttribute : Attribute
Expand Down

0 comments on commit 06156f9

Please sign in to comment.