Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds type-forwarders NET 5.0+ #641

Merged
merged 1 commit into from
Oct 1, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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