Skip to content

Commit

Permalink
Merge pull request #889 from majorro/internal-helpers
Browse files Browse the repository at this point in the history
Make helper classes internal
  • Loading branch information
adamhathcock authored Jan 16, 2025
2 parents fa1d440 + 1159efc commit 51d64ee
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 3 deletions.
4 changes: 4 additions & 0 deletions src/SharpCompress/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
using System;
using System.Runtime.CompilerServices;

[assembly: CLSCompliant(true)]
[assembly: InternalsVisibleTo(
"SharpCompress.Test,PublicKey=0024000004800000940000000602000000240000525341310004000001000100158bebf1433f76dffc356733c138babea7a47536c65ed8009b16372c6f4edbb20554db74a62687f56b97c20a6ce8c4b123280279e33c894e7b3aa93ab3c573656fde4db576cfe07dba09619ead26375b25d2c4a8e43f7be257d712b0dd2eb546f67adb09281338618a58ac834fc038dd7e2740a7ab3591826252e4f4516306dc"
)]
2 changes: 1 addition & 1 deletion src/SharpCompress/NotNullExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

namespace SharpCompress.Helpers;

public static class NotNullExtensions
internal static class NotNullExtensions
{
public static IEnumerable<T> Empty<T>(this IEnumerable<T>? source) =>
source ?? Enumerable.Empty<T>();
Expand Down
3 changes: 1 addition & 2 deletions src/SharpCompress/Utility.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@

namespace SharpCompress.Helpers;

[CLSCompliant(false)]
public static class Utility
internal static class Utility
{
public static ReadOnlyCollection<T> ToReadOnly<T>(this IList<T> items) => new(items);

Expand Down
2 changes: 2 additions & 0 deletions tests/SharpCompress.Test/SharpCompress.Test.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
<TargetFrameworks>net8.0;net462</TargetFrameworks>
<AssemblyName>SharpCompress.Test</AssemblyName>
<PackageId>SharpCompress.Test</PackageId>
<AssemblyOriginatorKeyFile>SharpCompress.Test.snk</AssemblyOriginatorKeyFile>
<SignAssembly>true</SignAssembly>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\..\src\SharpCompress\SharpCompress.csproj" />
Expand Down
Binary file added tests/SharpCompress.Test/SharpCompress.Test.snk
Binary file not shown.

0 comments on commit 51d64ee

Please sign in to comment.