mirror of
https://github.com/SabreTools/SabreTools.Serialization.git
synced 2026-04-17 11:43:02 +00:00
Move wrapper utility classes into Wrappers namespace
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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");
|
||||
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user