Skip to content
Merged
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions src/SharpCompress/Archives/Rar/FileInfoRarArchiveVolume.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.IO;
using System.Linq;
using SharpCompress.Common.Rar;
Expand Down
2 changes: 1 addition & 1 deletion src/SharpCompress/BufferPool.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Buffers;

namespace SharpCompress;
namespace SharpCompress.Helpers;

internal static class BufferPool
{
Expand Down
2 changes: 1 addition & 1 deletion src/SharpCompress/LazyReadOnlyCollection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using System.Collections;
using System.Collections.Generic;

namespace SharpCompress;
namespace SharpCompress.Helpers;

internal sealed class LazyReadOnlyCollection<T> : ICollection<T>
{
Expand Down
2 changes: 1 addition & 1 deletion src/SharpCompress/NotNullExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using System.Linq;
using System.Runtime.CompilerServices;

namespace SharpCompress;
namespace SharpCompress.Helpers;

public static class NotNullExtensions
{
Expand Down
30 changes: 0 additions & 30 deletions src/SharpCompress/ReadOnlyCollection.cs

This file was deleted.

6 changes: 4 additions & 2 deletions src/SharpCompress/Utility.cs
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
global using SharpCompress.Helpers;
using System;
using System.Buffers;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.IO;
using System.Text;
using SharpCompress.Readers;

namespace SharpCompress;
namespace SharpCompress.Helpers;

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

/// <summary>
/// Performs an unsigned bitwise right shift with the specified number
Expand Down
1 change: 1 addition & 0 deletions tests/SharpCompress.Test/TestBase.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
global using SharpCompress.Helpers;
using System;
using System.Collections.Generic;
using System.IO;
Expand Down