Skip to content

Commit

Permalink
Also add the other case, to prevent accidental change to public
Browse files Browse the repository at this point in the history
  • Loading branch information
pgrawehr committed Feb 2, 2022
1 parent 4fdf69e commit 307a623
Showing 1 changed file with 33 additions and 2 deletions.
35 changes: 33 additions & 2 deletions src/devices/Common/ClassVisibility.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@
using System.Text;
using System.Threading.Tasks;

#pragma warning disable SA1403 // File may only contain a single namespace

// These instructions make the classes public for building the individual projects.
// The default visibility is "internal" so they stay hidden if this section is removed for the final library build.
#if !BUILDING_IOT_DEVICE_BINDINGS

#pragma warning disable SA1403 // File may only contain a single namespace

public partial class Interop
{
}
Expand Down Expand Up @@ -42,5 +42,36 @@ public partial struct PinVector64
}
}

#else

internal partial class Interop
{
}

namespace Iot.Device.Common
{
internal partial class NumberHelper
{
}
}

namespace System.Device
{
internal partial class DelayHelper
{
}
}

namespace System.Device.Gpio
{
internal partial struct PinVector32
{
}

internal partial struct PinVector64
{
}
}


#endif

0 comments on commit 307a623

Please sign in to comment.