Put interfaces in respective namespaces

This commit is contained in:
Matt Nadareski
2026-03-18 16:13:02 -04:00
parent b3e25bb6a6
commit e4d26d4d81
19 changed files with 18 additions and 30 deletions

View File

@@ -89,15 +89,15 @@ Below is a table representing the various conversion interfaces that are impleme
| Interface Name | Source Type | Destination Type |
| --- | --- | --- |
| `SabreTools.Serialization.Interfaces.IByteReader<TModel>` | `byte[]?` | `TModel` |
| `SabreTools.Serialization.Interfaces.IByteWriter<TModel>` | `TModel` | `byte[]?` |
| `SabreTools.Serialization.Interfaces.ICrossModel<TSource, TDest>` | `TSource`/`TDest` | `TDest`/`TSource` |
| `SabreTools.Serialization.Interfaces.IFileReader<TModel>` | `string?` path | `TModel` |
| `SabreTools.Serialization.Interfaces.IFileWriter<TModel>` | `TModel` | `string?` path |
| `SabreTools.Serialization.Interfaces.IStreamReader<TModel>` | `Stream?` | `TModel` |
| `SabreTools.Serialization.Interfaces.IStreamWriter<TModel>` | `TModel` | `Stream?` |
| `SabreTools.Serialization.Interfaces.IStringReader<TModel>` | `string?` representation | `TModel` |
| `SabreTools.Serialization.Interfaces.IStringWriter<TModel>` | `TModel` | `string?` representation |
| `SabreTools.Serialization.CrossModel.ICrossModel<TSource, TDest>` | `TSource`/`TDest` | `TDest`/`TSource` |
| `SabreTools.Serialization.Readers.IByteReader<TModel>` | `byte[]?` | `TModel` |
| `SabreTools.Serialization.Readers.IFileReader<TModel>` | `string?` path | `TModel` |
| `SabreTools.Serialization.Readers.IStreamReader<TModel>` | `Stream?` | `TModel` |
| `SabreTools.Serialization.Readers.IStringReader<TModel>` | `string?` representation | `TModel` |
| `SabreTools.Serialization.Writers.IByteWriter<TModel>` | `TModel` | `byte[]?` |
| `SabreTools.Serialization.Writers.IFileWriter<TModel>` | `TModel` | `string?` path |
| `SabreTools.Serialization.Writers.IStreamWriter<TModel>` | `TModel` | `Stream?` |
| `SabreTools.Serialization.Writers.IStringWriter<TModel>` | `TModel` | `string?` representation |
Below is a table representing the various non-conversion interfaces that are implemented within this library.
@@ -119,7 +119,6 @@ Below is a table of all namespaces within the library and what they represent
| `SabreTools.Data.Models` | Models representing different file and structure types |
| `SabreTools.Data.ObjectIdentifier` | Object Identifier (OID) parsing |
| `SabreTools.Serialization.CrossModel` | Convert between models; mainly used for metadata files converting to and from a common, `Dictionary`-based model |
| `SabreTools.Serialization.Interfaces` | Interfaces used commonly throughout the library |
| `SabreTools.Serialization.Readers` | Convert from external sources to models |
| `SabreTools.Serialization.Wrappers` | Classes that wrap serialization and models to allow for including extension properties |
| `SabreTools.Serialization.Writers` | Convert from models to external sources |

View File

@@ -1,5 +1,4 @@
using SabreTools.Data.Models.Metadata;
using SabreTools.Serialization.Interfaces;
namespace SabreTools.Serialization.CrossModel
{

View File

@@ -1,6 +1,5 @@
using System.Collections.Generic;
using SabreTools.Data.Models.NES;
using SabreTools.Serialization.Interfaces;
namespace SabreTools.Serialization.CrossModel
{

View File

@@ -1,6 +1,5 @@
using System.Collections.Generic;
using SabreTools.Data.Models.NES;
using SabreTools.Serialization.Interfaces;
namespace SabreTools.Serialization.CrossModel
{

View File

@@ -1,4 +1,4 @@
namespace SabreTools.Serialization.Interfaces
namespace SabreTools.Serialization.CrossModel
{
/// <summary>
/// Defines how to convert between two model types

View File

@@ -1,5 +1,4 @@
using System.IO;
using SabreTools.Serialization.Interfaces;
namespace SabreTools.Serialization.Readers
{

View File

@@ -1,4 +1,4 @@
namespace SabreTools.Serialization.Interfaces
namespace SabreTools.Serialization.Readers
{
/// <summary>
/// Defines how to read from byte arrays

View File

@@ -1,4 +1,4 @@
namespace SabreTools.Serialization.Interfaces
namespace SabreTools.Serialization.Readers
{
/// <summary>
/// Defines how to read from files

View File

@@ -1,4 +1,4 @@
namespace SabreTools.Serialization.Interfaces
namespace SabreTools.Serialization.Readers
{
/// <summary>
/// Defines how to read from Streams

View File

@@ -1,4 +1,4 @@
namespace SabreTools.Serialization.Interfaces
namespace SabreTools.Serialization.Readers
{
/// <summary>
/// Defines how to read from strings

View File

@@ -1,5 +1,3 @@
using SabreTools.Serialization.Interfaces;
#pragma warning disable IDE0017 // Simplify object initialization
namespace SabreTools.Serialization.Readers
{

View File

@@ -1,5 +1,3 @@
using SabreTools.Serialization.Interfaces;
#pragma warning disable IDE0017 // Simplify object initialization
namespace SabreTools.Serialization.Readers
{

View File

@@ -1,5 +1,4 @@
using System.IO;
using SabreTools.Serialization.Interfaces;
namespace SabreTools.Serialization.Writers
{

View File

@@ -1,4 +1,4 @@
namespace SabreTools.Serialization.Interfaces
namespace SabreTools.Serialization.Writers
{
/// <summary>
/// Defines how to write to byte arrays

View File

@@ -1,4 +1,4 @@
namespace SabreTools.Serialization.Interfaces
namespace SabreTools.Serialization.Writers
{
/// <summary>
/// Defines how to write to files

View File

@@ -1,4 +1,4 @@
namespace SabreTools.Serialization.Interfaces
namespace SabreTools.Serialization.Writers
{
/// <summary>
/// Defines how to write to Streams

View File

@@ -1,4 +1,4 @@
namespace SabreTools.Serialization.Interfaces
namespace SabreTools.Serialization.Writers
{
/// <summary>
/// Defines how to write to strings

View File

@@ -1,5 +1,4 @@
using System.Text;
using SabreTools.Serialization.Interfaces;
namespace SabreTools.Serialization.Writers
{

View File

@@ -1,5 +1,4 @@
using System.Text;
using SabreTools.Serialization.Interfaces;
namespace SabreTools.Serialization.Writers
{