Move wrapper utility classes into Wrappers namespace

This commit is contained in:
Matt Nadareski
2026-03-18 16:55:48 -04:00
parent 638934e6b0
commit 685fadbfdf
5 changed files with 4 additions and 8 deletions

View File

@@ -3,7 +3,6 @@ using System.IO;
using SabreTools.CommandLine;
using SabreTools.CommandLine.Inputs;
using SabreTools.IO.Extensions;
using SabreTools.Serialization;
using SabreTools.Wrappers;
namespace ExtractionTool.Features

View File

@@ -5,7 +5,6 @@ using SabreTools.CommandLine;
using SabreTools.CommandLine.Inputs;
using SabreTools.Hashing;
using SabreTools.IO.Extensions;
using SabreTools.Serialization;
using SabreTools.Wrappers;
namespace InfoPrint.Features

View File

@@ -1813,7 +1813,7 @@ namespace SabreTools.Wrappers
// Parse the executable and recurse
_dataSource.SeekIfPossible(resourceOffset, SeekOrigin.Begin);
var resourceExe = Serialization.WrapperFactory.CreateExecutableWrapper(_dataSource);
var resourceExe = WrapperFactory.CreateExecutableWrapper(_dataSource);
if (resourceExe is not PortableExecutable resourcePex)
return -1;

View File

@@ -1,8 +1,7 @@
using System;
using System.Text;
using SabreTools.Wrappers;
namespace SabreTools.Serialization
namespace SabreTools.Wrappers
{
/// <summary>
/// Generic wrapper around printing methods
@@ -15,7 +14,7 @@ namespace SabreTools.Serialization
/// </summary>
public static void PrintToConsole(this IWrapper wrapper)
{
var sb = ExportStringBuilder(wrapper);
var sb = wrapper.ExportStringBuilder();
if (sb is null)
{
Console.WriteLine("No item information could be generated");

View File

@@ -1,9 +1,8 @@
using System;
using System.IO;
using SabreTools.IO.Extensions;
using SabreTools.Wrappers;
namespace SabreTools.Serialization
namespace SabreTools.Wrappers
{
public static class WrapperFactory
{