Extensions classes should be named as such

This commit is contained in:
Matt Nadareski
2026-03-18 17:15:03 -04:00
parent 685fadbfdf
commit b2eb0b5e67
13 changed files with 15 additions and 15 deletions

View File

@@ -3,7 +3,7 @@ using SabreTools.Data.Models.Atari7800;
namespace SabreTools.Data.Extensions
{
public static class Atari7800Cart
public static class Atari7800CartExtensions
{
/// <summary>
/// Convert a <see cref="AudioDevice"/> value to string

View File

@@ -2,7 +2,7 @@ using SabreTools.Data.Models.AtariLynx;
namespace SabreTools.Data.Extensions
{
public static class AtariLynxCart
public static class AtariLynxCartExtensions
{
/// <summary>
/// Convert a <see cref="Rotation"/> value to string

View File

@@ -5,7 +5,7 @@ using SabreTools.IO.Extensions;
namespace SabreTools.Data.Extensions
{
public static class CDROM
public static class CDROMExtensions
{
/// <summary>
/// Get the sector mode for a CD-ROM stream

View File

@@ -2,7 +2,7 @@ using System.Text;
namespace SabreTools.Data.Extensions
{
public static class CFB
public static class CFBExtensions
{
/// <summary>
/// Decode a MIME-encoded stream name stored as a byte array

View File

@@ -3,7 +3,7 @@ using SabreTools.Numerics;
namespace SabreTools.Data.Extensions
{
public static class ISO9660
public static class ISO9660Extensions
{
/// <summary>
/// Get the logical block size from a sector length

View File

@@ -2,7 +2,7 @@ using SabreTools.Data.Models.InstallShieldCabinet;
namespace SabreTools.Data.Extensions
{
public static class InstallShieldCabinet
public static class InstallShieldCabinetExtensions
{
#region File Descriptors

View File

@@ -2,7 +2,7 @@ using SabreTools.Data.Models.NES;
namespace SabreTools.Data.Extensions
{
public static class NESCart
public static class NESCartExtensions
{
/// <summary>
/// Convert a <see cref="ConsoleType"/> value to string

View File

@@ -2,7 +2,7 @@ using SabreTools.Data.Models.NewExecutable;
namespace SabreTools.Data.Extensions
{
public static class NewExecutable
public static class NewExecutableExtensions
{
/// <summary>
/// Determine if a resource type information entry is an integer or offset

View File

@@ -3,7 +3,7 @@ using SabreTools.Data.Models.COFF;
namespace SabreTools.Data.Extensions
{
public static class PortableExecutable
public static class PortableExecutableExtensions
{
/// <summary>
/// Convert a relative virtual address to a physical one

View File

@@ -6,14 +6,14 @@ using SabreTools.ObjectIdentifier;
namespace SabreTools.Data.Extensions
{
public static class TypeLengthValue
public static class TypeLengthValueExtensions
{
/// <summary>
/// Format a TypeLengthValue as a string
/// </summary>
/// <param name="paddingLevel">Padding level of the item when formatting</param>
/// <returns>String representing the TypeLengthValue, if possible</returns>
public static string Format(this Models.ASN1.TypeLengthValue tlv, int paddingLevel = 0)
public static string Format(this TypeLengthValue tlv, int paddingLevel = 0)
{
// Create the left-padding string
string padding = new(' ', paddingLevel);
@@ -38,7 +38,7 @@ namespace SabreTools.Data.Extensions
if (tlv.Type.HasFlag(ASN1Type.V_ASN1_CONSTRUCTED))
#endif
{
if (tlv.Value is not Models.ASN1.TypeLengthValue[] valueAsObjectArray)
if (tlv.Value is not TypeLengthValue[] valueAsObjectArray)
{
formatBuilder.Append(", Value: [INVALID DATA TYPE]");
return formatBuilder.ToString();

View File

@@ -3,7 +3,7 @@ using System.Text.RegularExpressions;
#pragma warning disable SYSLIB1045 // Convert to 'GeneratedRegexAttribute'
namespace SabreTools.Data.Extensions
{
public static class WiseScript
public static class WiseScriptExtensions
{
/// <summary>
/// Convert a Wise function ID to the formal action name

View File

@@ -2,7 +2,7 @@ using System.Collections.Generic;
namespace SabreTools.Data.Extensions
{
public static class XZ
public static class XZExtensions
{
/// <summary>
/// Decode a value from a variable-length integer

View File

@@ -3,7 +3,7 @@ using SabreTools.IO.Extensions;
namespace SabreTools.Data.Extensions
{
public static class XboxExecutable
public static class XboxExecutableExtensions
{
/// <summary>
/// Convert a UInt32 to a formatted XBE title ID