Merge pull request #889 from majorro/internal-helpers
Make helper classes internal
This commit is contained in:
commit
51d64ee10e
5 changed files with 8 additions and 3 deletions
|
|
@ -1,3 +1,7 @@
|
|||
using System;
|
||||
using System.Runtime.CompilerServices;
|
||||
|
||||
[assembly: CLSCompliant(true)]
|
||||
[assembly: InternalsVisibleTo(
|
||||
"SharpCompress.Test,PublicKey=0024000004800000940000000602000000240000525341310004000001000100158bebf1433f76dffc356733c138babea7a47536c65ed8009b16372c6f4edbb20554db74a62687f56b97c20a6ce8c4b123280279e33c894e7b3aa93ab3c573656fde4db576cfe07dba09619ead26375b25d2c4a8e43f7be257d712b0dd2eb546f67adb09281338618a58ac834fc038dd7e2740a7ab3591826252e4f4516306dc"
|
||||
)]
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ using System.Runtime.CompilerServices;
|
|||
|
||||
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>();
|
||||
|
|
|
|||
|
|
@ -9,8 +9,7 @@ using SharpCompress.Readers;
|
|||
|
||||
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);
|
||||
|
||||
|
|
|
|||
|
|
@ -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" />
|
||||
|
|
|
|||
BIN
tests/SharpCompress.Test/SharpCompress.Test.snk
Normal file
BIN
tests/SharpCompress.Test/SharpCompress.Test.snk
Normal file
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue