Skip to content

Commit

Permalink
Fix trimming issue on mobile targets
Browse files Browse the repository at this point in the history
  • Loading branch information
stephentoub committed Jul 11, 2021
1 parent ccc9d4c commit 224f95c
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
// 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.InteropServices
{
public sealed partial class PosixSignalRegistration
{
private PosixSignalRegistration() { }

[DynamicDependency("#ctor")] // Prevent the private ctor and the IDisposable implementation from getting linked away
public static partial PosixSignalRegistration Create(PosixSignal signal, Action<PosixSignalContext> handler)
{
if (handler is null)
Expand Down

0 comments on commit 224f95c

Please sign in to comment.